运行描述

vue项目,直接在终端中运行 npm run dev 可以成功执行。但是在atom安装的platformio-ide-terminal插件中打开一个终端运行报错

atom执行num run dev报错

解决方案

在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,
  })
]

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2021-10-05
  • 2021-04-08
  • 2021-04-17
猜你喜欢
  • 2021-11-08
  • 2021-11-16
  • 2022-01-05
  • 2021-10-01
  • 2021-10-15
  • 2021-04-18
  • 2021-10-16
相关资源
相似解决方案