diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2021-11-07 15:52:44 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2021-12-18 02:38:50 +0100 |
| commit | 0702d13263bf501c1db074ce1544e60b95161210 (patch) | |
| tree | ebca76946cead0ffcc742a64c15dd6f5e79958fa /pending/webpack.config.js | |
| parent | 56a75fcb8f5a9e4c05ccec8eb4a3345a115da441 (diff) | |
major rewritev0.3.0
Diffstat (limited to 'pending/webpack.config.js')
| -rw-r--r-- | pending/webpack.config.js | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pending/webpack.config.js b/pending/webpack.config.js new file mode 100644 index 0000000..57d31c1 --- /dev/null +++ b/pending/webpack.config.js @@ -0,0 +1,39 @@ +const path = require('path'); +const CopyWebpackPlugin = require('copy-webpack-plugin'); + + +module.exports = { + mode: 'none', + entry: '.' + path.sep + path.join('src_js', 'opcut', 'main'), + output: { + filename: 'main.js', + path: path.join(__dirname, 'build', 'js') + }, + module: { + rules: [ + { + test: /\.scss$/, + use: ["style-loader", "css-loader", "resolve-url-loader", "sass-loader?sourceMap"] + }, + { + test: /\.woff2$/, + use: "file-loader?name=fonts/[name].[ext]" + } + ] + }, + resolve: { + modules: [ + path.join(__dirname, 'src_js'), + path.join(__dirname, 'src_scss'), + path.join(__dirname, 'node_modules') + ] + }, + watchOptions: { + ignored: /node_modules/ + }, + plugins: [ + new CopyWebpackPlugin([{from: 'src_web'}]) + ], + devtool: 'source-map', + stats: 'errors-only' +}; |
