style-loader必须放在css-loader之前吗?为什么?
刚开始
{test:/\.css$/, use: ['css-loader','style-loader']},
运行:npm run build,会报错:
改成style-loader就正常了:
{test:/\.css$/, use: ['style-loader', 'css-loader']},
刚开始
{test:/\.css$/, use: ['css-loader','style-loader']},
运行:npm run build,会报错:
改成style-loader就正常了:
{test:/\.css$/, use: ['style-loader', 'css-loader']},
2018-03-28
举报