Skip to content

Commit b5e45eb

Browse files
committed
allow import "path/style.css" inside jsx (update webpack.config.js boilerplate)
1 parent da3e6af commit b5e45eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

inst/templates/webpack.config.js.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ module.exports = {
1616
options: {
1717
presets: ['@babel/preset-env', '@babel/preset-react']
1818
}
19+
},
20+
// For CSS so that import "path/style.css"; works
21+
{
22+
test: /\.css$/,
23+
use: ['style-loader', 'css-loader']
1924
}
2025
]
2126
},

0 commit comments

Comments
 (0)