ERROR in ./style.css
Module parse failed: E:\webpack_test\style.css Unexpected token (1:9)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (1:9)
at Parser.pp$4.raise (E:\webpack_test\node_modules\acorn\dist\acorn.js:2221:
15)
at Parser.pp.unexpected (E:\webpack_test\node_modules\acorn\dist\acorn.js:60
3:10)
at Parser.pp.semicolon (E:\webpack_test\node_modules\acorn\dist\acorn.js:581
:61)
at Parser.pp$1.parseExpressionStatement (E:\webpack_test\node_modules\acorn\
dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (E:\webpack_test\node_modules\acorn\dist\acorn
.js:730:24)
at Parser.pp$1.parseTopLevel (E:\webpack_test\node_modules\acorn\dist\acorn.
js:638:25)
at Parser.parse (E:\webpack_test\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (E:\webpack_test\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (E:\webpack_test\node_modules\webpack\lib\Parser.js:902:15)
at DependenciesBlock.<anonymous> (E:\webpack_test\node_modules\webpack\lib\N
ormalModule.js:104:16)
at DependenciesBlock.onModuleBuild (E:\webpack_test\node_modules\webpack-cor
e\lib\NormalModuleMixin.js:310:10)
at nextLoader (E:\webpack_test\node_modules\webpack-core\lib\NormalModuleMix
in.js:275:25)
at E:\webpack_test\node_modules\webpack-core\lib\NormalModuleMixin.js:259:5
at Storage.finished (E:\webpack_test\node_modules\enhanced-resolve\lib\Cache
dInputFileSystem.js:38:16)
at E:\webpack_test\node_modules\graceful-fs\graceful-fs.js:78:16
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:445:3)
@ ./hello.js 1:0-22
楼下要以看下这篇文章http://blog.csdn.net/luo6620378xu/article/details/9081417
webpack hello.js hello.bundle.js --module-bind "css=style-loader!css-loader" 把单引号改成双引号 就可以