diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-12-19 13:10:25 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-12-19 13:10:25 +0300 |
commit | d33cae71fab43e8fd5b1285c6a40f43f45d30a2f (patch) | |
tree | 84b018cd47b57965db6321e6c318f58c90cb18b8 /webpack.config.js | |
parent | 89dfb0ef6a61edfe9fa6420d4596a6618028df43 (diff) |
Bump frontend dependencies and remove build files
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/webpack.config.js b/webpack.config.js index 5837501..4d2c613 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,8 +1,6 @@ -const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); const webpack = require('webpack'); const path = require('path'); -const ExtractTextPlugin = require("extract-text-webpack-plugin"); -const CleanWebpackPlugin = require('clean-webpack-plugin'); +const { CleanWebpackPlugin } = require('clean-webpack-plugin'); module.exports = { devtool: 'source-map', @@ -20,16 +18,11 @@ module.exports = { extensions: [".ts", ".js"] }, plugins: [ - new CleanWebpackPlugin(['build']), + new CleanWebpackPlugin(), new webpack.NamedModulesPlugin(), - new ExtractTextPlugin({ - filename: "styles.css", - allChunks: true - }), - new UglifyJSPlugin({sourceMap: true}) ], module: { - loaders: [ + rules: [ { test: /\.js$/, include: [ @@ -41,10 +34,9 @@ module.exports = { }, { test: /\.css$/, - use: ExtractTextPlugin.extract({ - fallback: "style-loader", - use: "css-loader" - }) + use: [ + 'css-loader' + ] }, { test: /\.(png|jpg|gif|svg|woff|woff2|ttf|eot)$/, |