Reactjs 反应+;网页包css错误
使用网页包生成应用程序时出现错误。有人能帮我吗Reactjs 反应+;网页包css错误,reactjs,webpack,Reactjs,Webpack,使用网页包生成应用程序时出现错误。有人能帮我吗 Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type. > * { | color:red; | } webpack.config module: { rules: [{ loader: 'babel-loader', test: /\.js
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
> * {
| color:red;
| }
webpack.config
module: {
rules: [{
loader: 'babel-loader',
test: /\.js$/,
exclude: /node_modules/
}, {
test: /\.css$/,
use: [
'style-loader',
'css-loader'
]
}]
},
如果没有看到您的网页包配置,您将很难获得帮助。添加的网页包配置包含您的
*{color:red;}
code?导入“/styles/styles.css”的文件名是什么;用重启我的笔记本电脑来解决这个问题。反正是Thx