Webpack 4 simple example to quickly build a web application
Dependence | Version |
---|---|
Webpack | 4.8+ |
Some JavaScript Examples, ES6 Modules, Hot loading
一些 JavaScript 例子、ES6 模块、热加载
Some pictures, fonts, style files
一些图片、字体、样式文件
A simple cross-domain proxy
一个简单的跨域代理
Automatically package and separate js/css/image/font
自动打包并分离 js/css/image/font
Automatically convert ES6/x to EC5 version
自动转换 ES6 为 EC5 版本
Automatically fix CSS3 compatibility
自动修复 CSS3 兼容性
enjoy !
# install dependencies
npm install
# serve with hot reload at localhost:8088
npm run dev
# build for development
npm run build:dev
# build mini for production
npm run build