Webpack bundles my files in the wrong order (CommonsChunkPlugin)

后端 未结 4 1850
一生所求
一生所求 2020-12-03 03:04

What I want is to bundle my JavaScript vendor files in a specific order via CommonsChunkPlugin from Webpack.

I\'m using the CommonsChunkPlugin

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-03 03:32

    You can try https://webpack.js.org/guides/shimming/#script-loader - it looks like it will execute scripts in order and in global context.

提交回复
热议问题