Kaynağa Gözat

取代HTML内的引用

Luolei 6 yıl önce
ebeveyn
işleme
2c5325a0aa
2 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. 0 1
      src/html/drugInfo.html
  2. 1 1
      webpack.config.js

+ 0 - 1
src/html/drugInfo.html

@@ -160,7 +160,6 @@
       </div>
     </div>
   </div>
-  <script src="./../js/information.js"></script>
 </body>
 
 </html>

+ 1 - 1
webpack.config.js

@@ -68,7 +68,7 @@ module.exports = {
       title: 'drugInfo',
       template: path.resolve(__dirname, 'src/html', 'drugInfo.html'),
       filename: 'drugInfo.html',
-      chunks: ['drugInfo', 'vendor', 'common'],
+      chunks: ['information', 'vendor', 'common'],
       inject: true,
       hash: true, //防止缓存
       minify: {