鍍金池/ 問答/HTML/ vue項目中index.html引入layer.js報錯Unexpected t

vue項目中index.html引入layer.js報錯Unexpected token <

圖片描述

圖片描述

圖片描述

回答
編輯回答
吃藕丑

webpackd-dev-server 沒找到文件,返回 index.html, 試一下 /assets/js/layer/layer.js

clipboard.png
我這樣沒問題

應(yīng)該 build/webpack.dev.conf.js 是這幾行代碼的關(guān)系

new CopyWebpackPlugin([
      {
        from: path.resolve(__dirname, '../static'),
        to: config.dev.assetsSubDirectory,
        ignore: ['.*']
      }
    ])
2018年2月16日 05:51