Created
March 29, 2019 11:48
-
-
Save reformatco/bfbf79311e54e1eee74afd2061f002ac to your computer and use it in GitHub Desktop.
Adding postcss plugins to Gridsome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
siteName: 'Example', | |
chainWebpack: config => { | |
config.module | |
.rule('postcss') | |
.oneOf('normal') | |
.use('postcss-loader') | |
.tap(options => { | |
options.plugins.unshift(...[ | |
require('rucksack-css'), | |
]) | |
return options | |
}) | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment