Fix sourcemaps after livereload

This commit is contained in:
Roman Hotsiy 2016-11-01 09:57:06 +02:00
parent cf6b03c2ae
commit 8a5804f311
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -8,8 +8,7 @@ const IS_PRODUCTION = process.env.NODE_ENV === "production";
// TODO Refactor common parts of config // TODO Refactor common parts of config
module.exports = { module.exports = {
context: root(), devtool: '#inline-source-map',
devtool: 'source-map',
resolve: { resolve: {
extensions: ['.ts', '.js', '.json', '.css'], extensions: ['.ts', '.js', '.json', '.css'],
@ -51,7 +50,9 @@ module.exports = {
path: root('dist'), path: root('dist'),
filename: '[name].js', filename: '[name].js',
sourceMapFilename: '[name].[id].map', sourceMapFilename: '[name].[id].map',
chunkFilename: '[id].chunk.js' chunkFilename: '[id].chunk.js',
// devtoolModuleFilenameTemplate: "[resource-path]",
// devtoolFallbackModuleFilenameTemplate: "[resource-path]?[hash]",
}, },
module: { module: {