<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## HtmlWebpackPlugin 使用 HtmlWebpackPlugin 插件可以自動往 HTML 中添加和更改依賴路徑。 npm: https://www.npmjs.com/package/html-webpack-plugin ``` yarn add html-webpack-plugin --dev ``` 在 `conf/webpack.config.js` 中配置: ```js const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { entry: './src/main.js', output: { path: path.resolve(__dirname, '..', 'dist'), filename: '[name].bundle.js' }, plugins: [ new HtmlWebpackPlugin({ title: 'Output Management' }) ] }; ``` 將 `index.html` 改為原文件路徑依賴: ```html <script src='./src/main.js'></script> ``` 打包后,會看到在 dist 目錄下生成了一個 `index.html`,依賴已經自動解決 ```html <script type="text/javascript" src="main.bundle.js"></script> ``` ### 輸出多個 HTML 默認使用只會生成 index.html,若要生成多個 html,則: ```js new HtmlWebpackPlugin({ title: 'Output Management' }), new HtmlWebpackPlugin({ // Also generate a test.html filename: 'static/test.html', // 目標地址 template: 'src/static/test.html' // 源地址 }) ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看