daux.io/crafty.config.js

68 lignes
2.1 KiB
JavaScript
Brut Vue normale Historique

module.exports = {
2020-02-08 15:49:07 +01:00
browsers: "defaults, not op_mini all",
presets: [
"@swissquote/crafty-preset-babel",
"@swissquote/crafty-runner-rollup",
"@swissquote/crafty-preset-postcss",
"@swissquote/crafty-runner-gulp"
],
2019-09-20 23:29:22 +02:00
destination_css: ".",
destination_js: ".",
stylelint_pattern: [
2019-09-20 23:29:22 +02:00
"src/css/**/*.scss",
"!*.min.css",
"!**/vendor/**/*.scss"
],
stylelint: {
rules: {
"swissquote/no-type-outside-scope": null,
"plugin/no-unsupported-browser-features": null
}
},
js: {
search: {
runner: "rollup",
2020-02-08 15:49:07 +01:00
format: "iife",
source: "src/js/search/index.js",
destination: "daux_libraries/search.min.js"
},
theme_daux: {
runner: "rollup",
2020-02-08 15:49:07 +01:00
format: "iife",
source: "src/js/theme_daux/index.js",
destination: "themes/daux/js/daux.min.js"
}
},
css: {
theme_blue: {
2019-09-20 23:29:22 +02:00
source: "src/css/theme_daux/theme-blue.scss",
2019-09-21 22:44:09 +02:00
destination: "themes/daux/css/theme-blue.min.css",
watch: ["src/css/**/*.scss"]
},
theme_green: {
2019-09-20 23:29:22 +02:00
source: "src/css/theme_daux/theme-green.scss",
2019-09-21 22:44:09 +02:00
destination: "themes/daux/css/theme-green.min.css",
watch: ["src/css/**/*.scss"]
},
theme_navy: {
2019-09-20 23:29:22 +02:00
source: "src/css/theme_daux/theme-navy.scss",
2019-09-21 22:44:09 +02:00
destination: "themes/daux/css/theme-navy.min.css",
watch: ["src/css/**/*.scss"]
},
theme_red: {
2019-09-20 23:29:22 +02:00
source: "src/css/theme_daux/theme-red.scss",
2019-09-21 22:44:09 +02:00
destination: "themes/daux/css/theme-red.min.css",
watch: ["src/css/**/*.scss"]
},
daux_singlepage: {
2019-09-20 23:29:22 +02:00
source: "src/css/theme_daux_singlepage/main.scss",
2019-09-21 22:44:09 +02:00
destination: "themes/daux_singlepage/css/main.min.css",
watch: ["src/css/**/*.scss"]
}
2020-02-08 15:49:07 +01:00
},
postcss(crafty, config, bundle) {
// Add postcss-page-break
config.processor("postcss-page-break").before("autoprefixer");
}
};