mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 18:14:07 +03:00
Fix sourcemaps after livereload
This commit is contained in:
parent
cf6b03c2ae
commit
8a5804f311
|
@ -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: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user