summaryrefslogtreecommitdiff
path: root/web-ui/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/webpack.config.js')
-rw-r--r--web-ui/webpack.config.js20
1 files changed, 7 insertions, 13 deletions
diff --git a/web-ui/webpack.config.js b/web-ui/webpack.config.js
index 59d2ae5b..5886154a 100644
--- a/web-ui/webpack.config.js
+++ b/web-ui/webpack.config.js
@@ -1,6 +1,7 @@
var path = require('path');
var webpack = require('webpack');
var copyWebpack = require('./config/copy-webpack');
+var loaders = require('./config/loaders-webpack');
var aliases = require('./config/alias-webpack');
module.exports = {
@@ -20,18 +21,11 @@ module.exports = {
extensions: ['', '.js']
},
module: {
- loaders: [
- {
- test: /\.js$/,
- exclude: /(node_modules|bower_components)/,
- loader: 'babel',
- query: { presets: ['es2015', 'react']}
- },
- {
- test: /\.scss|css$/,
- loader: "style-loader!css-loader!sass-loader"
- }
- ]
+ loaders: loaders
},
- plugins: [copyWebpack]
+ plugins: [copyWebpack, new webpack.DefinePlugin({
+ 'process.env': {
+ 'NODE_ENV': '"development"'
+ }
+ })]
}