f2egame-html-res
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i f2egame-html-res

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

10.6 kB

Total Files

7

Last publish

Collaborators

  • lolipop99