planet-wars/mapbuilder/webpack.config.js

20 lines
492 B
JavaScript
Raw Normal View History

2019-10-20 11:08:13 +02:00
module.exports = {
2019-10-20 12:36:18 +02:00
mode: "development",
watch: true,
2019-10-20 15:53:23 +02:00
entry: ["./src/index.ts", "./src/style/style.scss"],
2019-10-20 12:36:18 +02:00
output: {
filename: "bundle.js",
path: __dirname + "/dist"
},
resolve: {
extensions: [".ts", ".tsx", ".js", ".json"]
},
devtool: "source-map",
module: {
rules: [
{ test: /\.scss$/, use: ["style-loader", "css-loader", "sass-loader"] },
{ test: /\.ts?$/, loader: "ts-loader" }
]
}
2019-10-20 15:53:23 +02:00
};