2017-10-01 13:02:25 -05:00
|
|
|
const webpack = require('webpack');
|
|
|
|
const merge = require('webpack-merge');
|
|
|
|
const common = require('./webpack.common.js');
|
|
|
|
|
|
|
|
config = merge(common, {
|
2017-10-12 12:01:02 -05:00
|
|
|
devtool: 'cheap-module-source-map',
|
2017-10-01 13:02:25 -05:00
|
|
|
externals: {
|
|
|
|
'react/addons': true,
|
|
|
|
'react/lib/ExecutionEnvironment': true,
|
|
|
|
'react/lib/ReactContext': true,
|
|
|
|
},
|
|
|
|
node: {
|
|
|
|
fs: 'empty'
|
|
|
|
},
|
|
|
|
plugins: [
|
2017-10-12 13:02:07 -05:00
|
|
|
// new webpack.SourceMapDevToolPlugin({
|
|
|
|
// filename: null, // if no value is provided the sourcemap is inlined
|
|
|
|
// test: /\.(ts|js)($|\?)/i // process .js and .ts files only
|
|
|
|
// })
|
2017-10-01 13:02:25 -05:00
|
|
|
]
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = config;
|