1.0.4 • Published 8 years ago
f2egame-html-res v1.0.4
f2egame-html-res
a html res plugin use with f2egame for webpack.
Installation
$ npm install f2egame-html-res --save-dev
Example Webpack Config
var f2egameHTML = require('f2egame-html-res');
//in your webpack plugins array
module.exports = {
plugins: [
new f2egameHTML({
// product?: ['web', 'client', '4366', 'mobile']
product: ''
})
]
}编译提示
最好是放在生产环境执行编译,因为防劫持代码会吞掉error报错。
默认prodct值为web,会在head标签前插入_PageStartTime,并加入业务防劫持代码。