Skip to content

Commit

Permalink
add css module
Browse files Browse the repository at this point in the history
  • Loading branch information
yeild committed Jun 3, 2020
1 parent a31807e commit 80253f0
Showing 3 changed files with 19 additions and 10 deletions.
7 changes: 6 additions & 1 deletion config/webpack.base.js
Original file line number Diff line number Diff line change
@@ -18,7 +18,12 @@ module.exports = {
},
{
test: /\.css$/,
use: ["style-loader", "css-loader"]
use: ['style-loader', {
loader: 'css-loader',
options: {
modules: true
}
}]
}
]
}
Loading

0 comments on commit 80253f0

Please sign in to comment.