Skip to content

Commit 2015273

Browse files
committed
1 parent c47204c commit 2015273

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

config/webpack.config.dev.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ module.exports = {
5959
// containing code from all our entry points, and the Webpack runtime.
6060
filename: 'static/js/bundle.js',
6161
// This is the URL that app is served from. We use "/" in development.
62-
publicPath: publicPath
62+
publicPath: publicPath,
63+
sourcePrefix : '',
6364
},
6465
resolve: {
6566
// This allows you to set a fallback for where Webpack should look for modules.
@@ -81,7 +82,9 @@ module.exports = {
8182
},
8283

8384
module: {
84-
// First, run the linter.
85+
unknownContextCritical : false,
86+
87+
// First, run the linter.
8588
// It's important to do this before Babel processes the JS.
8689
preLoaders: [
8790
{

config/webpack.config.prod.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ module.exports = {
6464
filename: 'static/js/[name].[chunkhash:8].js',
6565
chunkFilename: 'static/js/[name].[chunkhash:8].chunk.js',
6666
// We inferred the "public path" (such as / or /my-project) from homepage.
67-
publicPath: publicPath
67+
publicPath: publicPath,
68+
sourcePrefix : '',
6869
},
6970
resolve: {
7071
// This allows you to set a fallback for where Webpack should look for modules.
@@ -86,7 +87,9 @@ module.exports = {
8687
},
8788

8889
module: {
89-
// First, run the linter.
90+
unknownContextCritical : false,
91+
92+
// First, run the linter.
9093
// It's important to do this before Babel processes the JS.
9194
preLoaders: [
9295
{

0 commit comments

Comments
 (0)