philomena/assets/brunch-config.js

73 lines
1.8 KiB
JavaScript
Raw Normal View History

2019-08-18 02:43:44 +02:00
module.exports = {
files: {
javascripts: {joinTo: 'js/app.js'},
2019-11-16 01:59:28 +01:00
stylesheets: {
joinTo: {
'css/default.css': [
'css/themes/default.scss'
],
'css/dark.css': [
'css/themes/dark.scss'
],
'css/red.css': [
'css/themes/red.scss'
]
}
}
2019-08-18 02:43:44 +02:00
},
plugins: {
rollup: {
buble: {
transforms: { dangerousForOf: true }
}
},
sass: {
mode: 'native',
options: {
2019-12-06 22:38:36 +01:00
includePaths: ['css', 'node_modules/@fortawesome/fontawesome-free/scss']
2019-08-18 02:43:44 +02:00
}
},
copycat: {
2019-12-06 22:38:36 +01:00
fonts: ['node_modules/@fortawesome/fontawesome-free/webfonts'],
2019-08-18 02:43:44 +02:00
verbose: false,
onlyChanged: true
2019-12-06 22:38:36 +01:00
},
postcss: {
processors: [
require('autoprefixer')({
overrideBrowserslist: [
'last 2 Android versions',
'last 2 Chrome versions',
'last 2 ChromeAndroid versions',
'last 2 Edge versions',
'last 1 Explorer version',
'last 1 ExplorerMobile versions',
'last 2 Firefox versions',
'last 2 FirefoxAndroid versions',
'last 2 iOS versions',
'last 2 Opera versions'
],
add: true
})
]
2019-08-18 02:43:44 +02:00
}
},
conventions: {
// This option sets where we should place non-css and non-js assets in.
// By default, we set this to "/assets/static". Files in this directory
// will be copied to `paths.public`, which is "priv/static" by default.
assets: /static\//
},
paths: {
2019-11-16 01:59:28 +01:00
watched: ['css/themes/default.scss', 'css/themes/dark.scss', 'css/themes/red.scss', 'js/app.js', 'vendor', 'fonts', 'static'],
2019-08-18 02:43:44 +02:00
public: '../priv/static'
},
modules: {
definition: false,
wrapper: false
},
npm: {
enabled: false
}
};