Open xgqfrms-GitHub opened 7 years ago
new webpack.optimize.OccurentOrderPlugin() new webpack.DefinePlugin(GLOBALS) new ExtractTextPlugin('styles.css') new webpack.optimize.DedupePlugin() new webpack.optimize.UglifyJsPlugin()
Dedupe 重复数据删除
process.env.NODE_ENV === 'production'
https://github.com/cheeriojs/cheerio
Fast, flexible, and lean implementation of core jQuery designed specifically for the server.
快速,灵活,精简的实现核心jQuery专为服务器而设计。
a handy way to interact with an in-memory DOM using jQuery selectors.
import colors form 'colors';
import fs form 'fs';
import open from 'open';
ES6 => ES5
import compression from 'ompression';
app.use(compression());
NODE_ENV & JSON.stringify()
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify