1.0.6 • Published 5 years ago

xiaofeng-builder-webpack v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

xiaofeng-builder-webpack

A builder webpack project.

Installing

Using npm:

npm i -D xiaofeng-builder-webpack

Usage

Try to Add the following scripts into your project's package.json:

  "scripts": {
    "build": "webpack --config ./node_modules/xiaofeng-builder-webpack/lib/webpack.prod.js",
    "dev": "webpack-dev-server --config ./node_modules/xiaofeng-builder-webpack/lib/webpack.dev.js --open",
    "build:ssr": "webpack --config ./node_modules/xiaofeng-builder-webpack/lib/webpack.ssr.js",
    "build:stats": "webpack --config ./node_modules/xiaofeng-builder-webpack/lib/webpack.prod.js --json > stats.json"
  },

You can consult the ./node_modules/xiaofeng-builder-webpack/test/smoke/template directory for an example of the project structure.