You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
这是版本
"devDependencies": {
"css-loader": "^5.0.1",
"style-loader": "^2.0.0",
"webpack": "^4.35.3",
"webpack-cli": "^4.2.0"
}
// 错误信息
Module parse failed: Unexpected character '#' (1:0)
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
这是版本
"devDependencies": {
"css-loader": "^5.0.1",
"style-loader": "^2.0.0",
"webpack": "^4.35.3",
"webpack-cli": "^4.2.0"
}
// 错误信息
Module parse failed: Unexpected character '#' (1:0)
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
//webpack.config.js
const path = require('path');
module.exports = {
// 入口文件
entry:'./main.js',
output:{
// 将所有依赖的文件合并输出到一个.js文件
filename:'bundle.js',
// 输出文件的路径
path:path.resolve(__dirname,'./dist')
},
module:{
rules:[
{
// 使用正则去匹配出所有的css文件
test:'/.css$/',
}
The text was updated successfully, but these errors were encountered: