Skip to content

Instantly share code, notes, and snippets.

@reformatco
Created March 29, 2019 11:48
Show Gist options
  • Save reformatco/bfbf79311e54e1eee74afd2061f002ac to your computer and use it in GitHub Desktop.
Save reformatco/bfbf79311e54e1eee74afd2061f002ac to your computer and use it in GitHub Desktop.
Adding postcss plugins to Gridsome
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