Neurotoxin Powered Marketing

    @tuia/scene-switch-inject-webpack-plugin
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.2 • Public • Published

    scene-switch-inject-webpack-plugin

    为HTML页面注入多场景切换插件的Webpack插件

    安装

    npm i -D @tuia/scene-switch-inject-webpack-plugin

    注:该插件依赖 HTML Webpack Plugin

    使用

    webpack.conf.js

    const SceneSwitchInjectPlugin = require("@tuia/scene-switch-inject-webpack-plugin").default
    
    module.exports = {
      plugins: [new SceneSwitchInjectPlugin({ env: ["development", "test"] })]
    }

    env选项对应process.env.NODE_ENV,当process.env.NODE_ENV在env列表中,多场景切换插件将生效。

    Install

    npm i @tuia/scene-switch-inject-webpack-plugin

    DownloadsWeekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    5.38 kB

    Total Files

    9

    Last publish

    Collaborators

    • dinglh
    • candy_dd
    • wintersun97
    • tump
    • inuanfeng
    • zhoucheng
    • zhangmin173
    • aiduck
    • chao.zhou
    • babalk
    • leitingting
    • sillyy
    • nbseven
    • linhao-vue
    • liusandy