我有同樣的問題與CMD Win7上運行npm run dev
。 我不知道,因爲我沒有明確要求這個插件,當我開始這個錯誤沒有發生在我身上。
由於我也開始出現這個錯誤,我已經嘗試設置這個issue report from the official repo提供,我試着玩。
最後我結束了編輯webpack.dev.conf.js
加入這個特定的插件插件項,如下所示:
// File header with other Imports
var utils = require('./utils')
// ...
var ExtractTextPlugin = require('extract-text-webpack-plugin')
// Then in Module definition
module.exports = merge(baseWebpackConfig, {
// ... other keys for module
plugins: [
// .. other plugins
// .. I copied this line from the webpack.prod.conf.js
new ExtractTextPlugin({
filename: utils.assetsPath('css/[name].[contenthash].css')
}),
那麼有可能會更好,更美的解決方案。 這只是一個似乎爲我解決它。 由於我是新來VueJs和我只使用開發服務器在與自動重此刻,其他answeres可能是有點更精緻。