19 lines
492 B
JavaScript
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" }
|
|
]
|
|
}
|
|
};
|