planet-wars/mapbuilder/deprecated/webpack.config.js
2020-03-05 14:38:57 +01:00

19 lines
492 B
JavaScript

module.exports = {
mode: "development",
watch: true,
entry: ["./src/index.ts", "./src/style/style.scss"],
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" }
]
}
};