Skip to content

mems/webpack-splitchunks-test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

npm i && npm run build && npm run serve

Expected result

The page should contains 🆗 not 🆖, because src/style2.css is imported after src/style1.css.

CSS generation method

To use mini-css-extract-plugin, in src/webpack.config.js, set EXTRACT to true. Or native CSS support (experimental) will be used.

Split chunks

To enable split chunks, in src/webpack.config.js, set SPLIT_CHUNKS to true.

Test prirority

To set chunk split priority to enforce chunk order, in src/webpack.config.js, set PRIORITY to true.

Note the order is not guaranteed

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 85.8%
  • HTML 10.6%
  • CSS 3.6%