因为需要 通过 loader 打包非 js 模块,否则会报错
ERROR in ./src/css/1.css 1:3
Module parse failed: Unexpected token (1:3)
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#loaders
li {
| list-style: none;
| }
@ ./src/index.js 2:0-20