rickvanlieshout.com/gatsby-node.js

22 lines
488 B
JavaScript
Raw Normal View History

2016-06-03 01:32:38 +02:00
var rucksack = require('rucksack-css')
var lost = require("lost")
2016-06-07 20:44:26 +02:00
var cssnext = require("postcss-cssnext")
2016-06-03 01:32:38 +02:00
exports.modifyWebpackConfig = function(config, env) {
config.merge({
postcss: [
lost(),
2016-06-06 17:01:16 +02:00
rucksack(),
2016-06-07 20:44:26 +02:00
cssnext({
browsers: ['>1%', 'last 2 versions']
2016-06-06 17:01:16 +02:00
})
2016-06-03 01:32:38 +02:00
]
})
2016-07-30 01:05:32 +02:00
config.loader('svg', {
test: /\.(svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: 'file-loader',
})
2016-06-03 01:32:38 +02:00
return config
};