rickvanlieshout.com/gatsby-node.js

23 lines
444 B
JavaScript
Raw Normal View History

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