[React + webpack] hjs-webpack

You can easily spend hours configuring the perfect dev environment with all the latest hotness like ES6 (and beyond) support, hot reloading, and a myriad of other features.

webpack.config.js

var getConfig = require('hjs-webpack');

module.exports = getConfig({
in: './src/app.js',
out: 'dist',
clearBeforeBuild: true
});

package.json:

  "scripts": {
"start": "webpack-dev-server",
"build": "webpack",
"deploy": "npm run build && surge -p dist -d somedomain.com"
},
上一篇:There was an internal API error.的解决办法


下一篇:PowerDesigner设置线风格(直线,折线。。。)