Skip to content

rcherny/webpack-test-cases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpack Test Cases

  • update readme and html bundle test cases

Various simple test configs for using webpack build set ups with various plugins.

Each sub-folder should be a standalone test case. Serve is run from the root, however.

Set Up

  • Check out repo
  • from a terminal, run:
    $ npm install
  • run the desired builds from package.json
  • inspect the folder ouput in dist for each sub-folder
  • to browse sample html files as appropriate, execute:
    $ npm run server
  • Open web browser and browse desired dist folder

Use Cases

These test cases largely demo the ability to lazy import css via JS. This is not necessarily CSS Modules, but using various solutions.

CSS largely should be imported via a <link /> tag, but for various "routes" on a SPA application it is not unusual to load a JS file + its css support simultaneously after the page loads.

About

Various test cases using webpack with misc plugins.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published