From 78f8a426588385ded2369a4bd9726e5328d994df Mon Sep 17 00:00:00 2001 From: Grant Nestor Date: Fri, 12 Aug 2016 13:29:45 -0700 Subject: [PATCH] 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]` --- webpack.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index eb00d086a..c68499d29 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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,