Enhanced inject CSS into the razzle bundle
npm install -D @rambler-tech/razzle-css
or
yarn add -D @rambler-tech/razzle-css
Add the plugin to razzle.config.js
const CssPlugin = require('@rambler-tech/razzle-css')
module.exports = {
plugins: [
CssPlugin()
],
modifyWebpackConfig({webpackConfig}) {
// ...
return webpackConfig
}
}