static webpack boilerplate
1.0.0
用于构建静态站点的最小和现代 Webpack 样板
演示网站
├── public # Main folder
│ ├── css # Subfolder with css
│ │ ├── main.css # Main CSS file
│ ├── fonts # Subfolder with fonts
│ │ ├── open-sans-v16-latin-regular.woff # .woff font
│ │ └── open-sans-v16-latin-regular.woff2 # .woff2 font
│ ├── images # Subfolder with images
│ │ ├── favicon.png # Favicon
│ ├── js # Subfolder with JavaScript
│ │ ├── main.js # Main (entry) file
│ └── index.html # HTML template
├── .npmrc # npm config
├── .stylelintrc # stylelint config
├── .travis.yml # Travis CI config
├── package.json # Package config with scripts, list of dependencies etc.
├── webpack.config.js # Webpack config
├── babel.config.js # Babel config
# Install dependencies
$ npm install
# Start webpack-dev-server at port 8080
$ npm start
# Run linters
$ npm test
# Build app for production (gets output in the 'dist' directory)
$ npm run build
我建议使用 Zeit Now 或 Netlify 来托管您的网站。
麻省理工学院