项目中有些文件没使用到或者是只有一个css文件仅仅使用link方式引入,在其它地方都没使用到css文件,启动webpack的时候还提示
Module parse failed: Unexpected token (6:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loader
比如有个目录有个html文件,就是一个demo文件,不是作为入口文件,还有只写了一个css文件放在固定目录,在入口index.html文件中使用link 方式引入
展开