2015-09-02 15:08:58 -04:00
|
|
|
var path = require('path');
|
|
|
|
var webpack = require('webpack');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: {
|
|
|
|
main: './src/main.jsx',
|
|
|
|
splash: './src/views/splash/splash.jsx'
|
|
|
|
},
|
|
|
|
devtool: 'source-map',
|
|
|
|
externals: {
|
|
|
|
'react': 'React',
|
|
|
|
'react/addons': 'React'
|
|
|
|
},
|
|
|
|
output: {
|
|
|
|
path: path.resolve(__dirname, 'build/js'),
|
|
|
|
filename: '[name].bundle.js'
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
loaders: [
|
|
|
|
{
|
|
|
|
test: /\.jsx$/,
|
|
|
|
loader: 'jsx-loader',
|
|
|
|
include: path.resolve(__dirname, 'src')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.json$/,
|
|
|
|
loader: 'json-loader',
|
|
|
|
include: path.resolve(__dirname, 'src')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.scss$/,
|
2015-09-03 22:41:27 -04:00
|
|
|
loader: 'style!css!sass!autoprefixer-loader?browsers=last 3 versions'
|
2015-09-02 15:08:58 -04:00
|
|
|
}
|
|
|
|
]
|
2015-09-02 16:33:31 -04:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new webpack.optimize.UglifyJsPlugin({
|
|
|
|
compress: {
|
|
|
|
warnings: false
|
|
|
|
}
|
|
|
|
}),
|
|
|
|
new webpack.optimize.OccurenceOrderPlugin(),
|
|
|
|
new webpack.optimize.DedupePlugin()
|
|
|
|
]
|
2015-09-02 15:08:58 -04:00
|
|
|
};
|