mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 16:00:14 +01:00
fix(source map): fix #136 source map no being generated correctly
This commit is contained in:
parent
e59326add2
commit
c79ac94a66
3 changed files with 7 additions and 7 deletions
|
|
@ -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')
|
||||
},
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}),
|
||||
})
|
||||
],
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue