2017-08-03 00:14:30 +00:00
|
|
|
module.exports = function (plugins) {
|
|
|
|
return {
|
2017-10-08 08:26:41 +00:00
|
|
|
less: {
|
2017-08-03 00:32:37 +00:00
|
|
|
autoprefixer: {
|
|
|
|
browsers: ["last 2 versions", "> 5%"],
|
|
|
|
cascade: false
|
|
|
|
},
|
2017-10-07 08:00:03 +00:00
|
|
|
sourceDir: "assets/less",
|
|
|
|
pattern: "/**/*.less",
|
2017-08-03 00:32:37 +00:00
|
|
|
purifyCss: [
|
|
|
|
'source/**/*.html',
|
|
|
|
'source/**/*.md',
|
|
|
|
'source/**/*.twig'
|
|
|
|
],
|
2017-08-03 00:14:30 +00:00
|
|
|
outputDir: "source/assets/css"
|
|
|
|
},
|
|
|
|
fonts: {
|
|
|
|
outputDir: "source/assets/fonts"
|
|
|
|
},
|
|
|
|
js: {
|
|
|
|
sourceDir: "assets/js",
|
|
|
|
pattern: "/**/*.js",
|
|
|
|
outputDir: "source/assets/js"
|
|
|
|
},
|
|
|
|
production: !!plugins.util.env.production
|
|
|
|
}
|
|
|
|
}
|