Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

f2egame-html-res

lolipop9916ISC1.0.4TypeScript support: included

游戏部前端html静态资源控制

f2e, game, html, res

readme

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,并加入业务防劫持代码。

License

http://www.opensource.org/licenses/mit-license.php