Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 1.49 KB

readme.md

File metadata and controls

58 lines (37 loc) · 1.49 KB

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.