加载了所有-loader还是无法打包
明明所有loader都下载到局部环境了:
"devDependencies": {
"autoprefixer": "^7.1.2",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.1",
"babel-preset-latest": "^6.24.1",
"css-loader": "^0.28.5",
"html-loader": "^0.5.1",
"html-webpack-plugin": "^2.30.1",
"less-loader": "^4.0.5",
"node-sass": "^4.5.3",
"postcss-loader": "^2.0.6",
"style-loader": "^0.18.2",
"webpack": "^3.5.5"
打包时还是疯狂报错:
ERROR in ./src/components/layer/layer.less
Module parse failed: C:\Users\Haopc\Desktop\webpack-demo-sourceFile\src\components\layer\layer.less Unexpected token (2:0)
You may need an appropriate loader to handle this file type.
ERROR in ./src/css/common.css
Module parse failed: C:\Users\Haopc\Desktop\webpack-demo-sourceFile\src\css\common.css Unexpected character '@' (1:0)
You may need an appropriate loader to handle this file type.
本来是html报错,我把webpack.config.js删了重新写了一个,就变成这样了,弄到现在凌晨4点心态崩了。有老哥帮帮我吗?