diff options
Diffstat (limited to 'web-ui/webpack.production.config.js')
-rw-r--r-- | web-ui/webpack.production.config.js | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/web-ui/webpack.production.config.js b/web-ui/webpack.production.config.js index bc10b90e..cf8ab8ff 100644 --- a/web-ui/webpack.production.config.js +++ b/web-ui/webpack.production.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,17 +21,7 @@ module.exports = { extensions: ['', '.js'] }, module: { - loaders: [ - { - test: /\.js$/, - loader: 'babel', - query: { presets: ['es2015', 'react']} - }, - { - test: /\.scss|css$/, - loader: "style-loader!css-loader!sass-loader" - } - ] + loaders: loaders }, plugins: [ new webpack.optimize.UglifyJsPlugin(), |