Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.
IanYetPublic archive

About

create webpack frontend app demo

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

create-webpack-slim

Quickly create a simple webpack app

Usage

npx create-webpack-slim my-app
cd my-app
yarn install
yarn start

create-webpack-slim

Content

  • dev config webpack.config.dev.js

    • babel
    • css module
    • html template
    • devServer
  • prod config webpack.config.prod.js

    • css extract
    • hash8 filename
    • copy public
    • split chunks

You can modify the output.publicPath configuration in webpack.config.prod.js to set the url prefix for static resources.

loaders

babel-loader
css-loader
file-loader
style-loader
url-loader
MiniCssExtractPlugin.loader

plugins

clean-webpack-plugin
copy-webpack-plugin
html-webpack-plugin
mini-css-extract-plugin

Happy coding!

About

create webpack frontend app demo

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages