module.exports = { browsers: "defaults, not op_mini all", presets: [ "@swissquote/crafty-preset-babel", "@swissquote/crafty-runner-rollup", "@swissquote/crafty-preset-postcss", "@swissquote/crafty-runner-gulp" ], destination_css: ".", destination_js: ".", stylelint_pattern: [ "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", format: "iife", source: "src/js/search/index.js", destination: "daux_libraries/search.min.js" }, theme_daux: { runner: "rollup", format: "iife", source: "src/js/theme_daux/index.js", destination: "themes/daux/js/daux.min.js" } }, css: { theme_blue: { source: "src/css/theme_daux/theme-blue.scss", destination: "themes/daux/css/theme-blue.min.css", watch: ["src/css/**/*.scss"] }, theme_green: { source: "src/css/theme_daux/theme-green.scss", destination: "themes/daux/css/theme-green.min.css", watch: ["src/css/**/*.scss"] }, theme_navy: { source: "src/css/theme_daux/theme-navy.scss", destination: "themes/daux/css/theme-navy.min.css", watch: ["src/css/**/*.scss"] }, theme_red: { source: "src/css/theme_daux/theme-red.scss", destination: "themes/daux/css/theme-red.min.css", watch: ["src/css/**/*.scss"] }, daux_singlepage: { source: "src/css/theme_daux_singlepage/main.scss", destination: "themes/daux_singlepage/css/main.min.css", watch: ["src/css/**/*.scss"] } }, postcss(crafty, config, bundle) { // Add postcss-page-break config.processor("postcss-page-break").before("autoprefixer"); } };