diff options
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/webpack.config.js b/webpack.config.js index 16d437f..6c855e5 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,4 +1,3 @@ -const MinifyPlugin = require("babel-minify-webpack-plugin"); const HtmlWebpackPlugin = require('html-webpack-plugin'); const path = require('path'); @@ -19,13 +18,13 @@ config = { }, module: { - loaders: [ + rules: [ { test: [ /\.js$/, /\.jsx$/ ], exclude: /node_modules/, loader: 'babel-loader', query: { - presets: ['es2015', 'react'] + presets: ['preact'] } }, { @@ -57,8 +56,5 @@ config = { }) ] }; -if (process.env.NODE_ENV === 'production') { - config.plugins.push(new MinifyPlugin()); -} module.exports = config |