Define webpack publicPath

Silent source map warnings in Chrome DevTool: `Source map
http://localhost:8888/static/notebook/js/built/main.min.js.map points
to the files missing from the workspace:
[webpack:///./notebook/static/notebook/js/main.js]`
pull/1675/head
Grant Nestor 10 years ago
parent 961b1c0ba0
commit 78f8a42658

@ -55,7 +55,8 @@ function buildConfig(appName) {
entry: './notebook/static/' + appName + '/js/main.js',
output: {
filename: 'main.min.js',
path: './notebook/static/' + appName + '/js/built'
path: './notebook/static/' + appName + '/js/built',
publicPath: '/'
},
devtool: sourcemaps,
});
@ -72,6 +73,7 @@ module.exports = [
output: {
filename: 'contents.js',
path: './notebook/static/services/built',
publicPath: '/',
libraryTarget: 'amd'
},
devtool: sourcemaps,
@ -81,6 +83,7 @@ module.exports = [
output: {
filename: 'index.js',
path: './notebook/static/built',
publicPath: '/',
libraryTarget: 'amd'
},
devtool: sourcemaps,

Loading…
Cancel
Save