fix(source map): fix #136 source map no being generated correctly

This commit is contained in:
nixa 2016-08-02 11:43:01 +03:00
parent e59326add2
commit c79ac94a66
3 changed files with 7 additions and 7 deletions

View file

@ -75,7 +75,7 @@ module.exports = {
root: helpers.root('src'),
// remove other default values
modulesDirectories: ['node_modules'],
modulesDirectories: ['node_modules']
},
@ -170,7 +170,7 @@ module.exports = {
{
test: /initial\.scss$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader!sass-loader')
loader: ExtractTextPlugin.extract('style-loader', 'css-loader!sass-loader?sourceMap')
},
{

View file

@ -80,7 +80,7 @@ module.exports = webpackMerge(commonConfig, {
*
* See: http://webpack.github.io/docs/configuration.html#output-sourcemapfilename
*/
sourceMapFilename: '[name].map',
sourceMapFilename: '[file].map',
/** The filename of non-entry chunks as relative path
* inside the output.path directory.
@ -90,7 +90,7 @@ module.exports = webpackMerge(commonConfig, {
chunkFilename: '[id].chunk.js',
library: 'ac_[name]',
libraryTarget: 'var',
libraryTarget: 'var'
},
plugins: [
@ -111,9 +111,9 @@ module.exports = webpackMerge(commonConfig, {
'process.env': {
'ENV': JSON.stringify(METADATA.ENV),
'NODE_ENV': JSON.stringify(METADATA.ENV),
'HMR': METADATA.HMR,
'HMR': METADATA.HMR
}
}),
})
],
/**

View file

@ -128,7 +128,7 @@ module.exports = webpackMerge(commonConfig, {
'process.env': {
'ENV': JSON.stringify(METADATA.ENV),
'NODE_ENV': JSON.stringify(METADATA.ENV),
'HMR': METADATA.HMR,
'HMR': METADATA.HMR
}
}),