atom执行num run dev报错
Posted jinjiyese153
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了atom执行num run dev报错相关的知识,希望对你有一定的参考价值。
# atom运行npm run dev报错问题
运行描述
vue项目,直接在终端中运行
npm run dev
可以成功执行。但是在atom安装的platformio-ide-terminal插件中打开一个终端运行报错
解决方案
在webpack.dev.conf.js中添加如下配置即可
const ExtractTextPlugin = require('extract-text-webpack-plugin')
plugins: [
...
// extract css into its own file
new ExtractTextPlugin({
filename: utils.assetsPath('css/[name].[contenthash].css'),
// set the following option to `true` if you want to extract CSS from
// codesplit chunks into this main css file as well.
// This will result in *all* of your app's CSS being loaded upfront.
allChunks: false,
})
]
以上是关于atom执行num run dev报错的主要内容,如果未能解决你的问题,请参考以下文章
vue项目更换目录后执行npm run dev 就报错(新手进)
Flutterflutter doctor 报错Android license status unknown. Run `flutter doctor --android-licenses‘(代码片段
svn报错cleanup failed–previous operation has not finished; run cleanup if it was interrupted的解决办法(代码片段
npm run dev 报错:missing script:dev
ubuntu16.04 yum报错:There are no enabled repos. Run “yum repolist all“ to see the repos you have.(代码片段