aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-03-11 13:26:17 +0900
committerGitHub <noreply@github.com>2018-03-11 13:26:17 +0900
commit0e340959247ced73b61698542b9818b70f22597b (patch)
treec01e17c100e0f94653ac57a2b0f933485108c0a3 /webpack.config.js
parent4f483a19cb5eec9ab205d9e8cffa08d177d0478b (diff)
parent749d71e8e5ea098f4c5ae271af1164f5e2b2a06d (diff)
Merge pull request #358 from ueokande/improve-build
Improve build
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/webpack.config.js b/webpack.config.js
index fc5ef5e..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', 'preact']
+ presets: ['preact']
}
},
{
@@ -57,8 +56,5 @@ config = {
})
]
};
-if (process.env.NODE_ENV === 'production') {
- config.plugins.push(new MinifyPlugin());
-}
module.exports = config