Skip to content

Commit 0501bf9

Browse files
qasimalyasmontogeek
authored andcommitted
docs(guides): Added publicPath to output (#2420)
Without this i was finding that webpack wasn't able to find the file which was being dynamically imported which was also reported here webpack/webpack#7502. Adding this allowed my example to work as expected - makes extra network request to and executes the file.
1 parent e7196bd commit 0501bf9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/content/guides/code-splitting.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ __webpack.config.js__
184184
output: {
185185
filename: '[name].bundle.js',
186186
+ chunkFilename: '[name].bundle.js',
187+
publicPath: 'dist/',
187188
path: path.resolve(__dirname, 'dist'),
188189
},
189190
- optimization: {

0 commit comments

Comments
 (0)