loader安装后还是报错
来源:3-5 webpack对脚本和样式的处理
yippeiy
2017-08-07
$ cat package.json
{
"name": "te-mall1",
"version": "1.0.0",
"description": "te-mall前端代码\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[D\u001b[\u001b[",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git@git.oschina.net:part1/te-mall1.git"
},
"author": "longfou",
"license": "ISC",
"devDependencies": {
"css-loader": "^0.28.4",
"extract-text-webpack-plugin": "^1.0.1",
"style-loader": "^0.18.2",
"webpack": "^1.15.0"
},
"dependencies": {}
}css-loader和style-loader都已经安装了,但是webpack后还是提示错误
Administrator@SC-201706121639 MINGW64 /f/portfolio/te-mall1/doc/te-mall1 (te-mall1_v1.0)
$ webpack
Hash: 80a53ad43a1b8d847206
Version: webpack 1.15.0
Time: 95ms
Asset Size Chunks Chunk Names
js/base.js 4.41 kB 0 [emitted] common
js/index.js 494 bytes 1 [emitted] index
js/login.js 452 bytes 2 [emitted] login
[0] multi common 28 bytes {0} [built]
[0] multi index 28 bytes {1} [built]
[0] multi login 28 bytes {2} [built]
[1] ./src/page/common/index.js 191 bytes {0} [built]
[2] ./src/page/index/index.js 130 bytes {1} [built] [1 error]
[3] ./src/page/index/index.css 0 bytes [built] [failed]
[4] ./src/page/module.js 198 bytes {0} [built]
[5] ./src/page/login/index.js 222 bytes {2} [built]
ERROR in ./src/page/index/index.css
Module parse failed: F:\portfolio\te-mall1\doc\te-mall1\src\page\index\index.css Unexpected token (7:4)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (7:4)写回答
2回答
-
语法错误
012017-08-08 -
yippeiy
提问者
2017-08-07
已解决
012018-09-18
相似问题