dispatch/client/webpack.config.prod.js

28 lines
719 B
JavaScript
Raw Normal View History

var path = require('path');
2015-12-28 23:34:32 +00:00
var webpack = require('webpack');
module.exports = {
2018-03-25 00:34:41 +00:00
mode: 'production',
2015-12-28 23:34:32 +00:00
entry: [
'./src/js/index'
],
output: {
2017-04-12 01:38:02 +00:00
filename: 'bundle.js'
2015-12-28 23:34:32 +00:00
},
resolve: {
alias: {
components: path.resolve(__dirname, 'src/js/components'),
containers: path.resolve(__dirname, 'src/js/containers'),
state: path.resolve(__dirname, 'src/js/state'),
utils: path.resolve(__dirname, 'src/js/utils')
}
},
2015-12-28 23:34:32 +00:00
module: {
2017-02-16 02:55:50 +00:00
rules: [
{ test: /\.js$/, loader: 'eslint-loader', exclude: /node_modules/, enforce: 'pre' },
{ test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ },
2017-04-12 01:38:02 +00:00
{ test: /\.css$/, loader: 'style-loader!css-loader' }
2015-12-28 23:34:32 +00:00
]
}
2015-12-28 23:34:32 +00:00
};