diff options
Diffstat (limited to 'www/webpack.config.js')
-rw-r--r-- | www/webpack.config.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/www/webpack.config.js b/www/webpack.config.js new file mode 100644 index 0000000..0a1e226 --- /dev/null +++ b/www/webpack.config.js | |||
@@ -0,0 +1,22 @@ | |||
1 | const CopyWebpackPlugin = require("copy-webpack-plugin"); | ||
2 | const path = require('path'); | ||
3 | |||
4 | module.exports = { | ||
5 | entry: "./bootstrap.js", | ||
6 | output: { | ||
7 | path: path.resolve(__dirname, "dist"), | ||
8 | filename: "bootstrap.js", | ||
9 | }, | ||
10 | mode: "development", | ||
11 | plugins: [ | ||
12 | new CopyWebpackPlugin(['index.html']) | ||
13 | ], | ||
14 | module: { | ||
15 | rules: [ | ||
16 | { | ||
17 | test: /\.txt$/i, | ||
18 | use: 'raw-loader', | ||
19 | }, | ||
20 | ], | ||
21 | }, | ||
22 | }; | ||