S
S
Spunreal2017-06-22 12:15:39
webpack
Spunreal, 2017-06-22 12:15:39

How to set up magic comments in Webpack 2/3 imports?

The documentation for webpack indicates the ability to set custom chunk names:

import(/* webpackChunkName: "my-chunk-name" */ 'module');

But no matter how much I tried, the code is still allocated to the 0.js chunk
How to set it all up correctly?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question