2018-11-28 19:03:28 +08:00
|
|
|
'use strict'
|
|
|
|
|
2021-12-15 16:52:49 +08:00
|
|
|
const mapConfig = {
|
|
|
|
inline: false,
|
|
|
|
annotation: true,
|
|
|
|
sourcesContent: true
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = context => {
|
2020-11-23 22:11:16 +08:00
|
|
|
return {
|
2021-12-15 16:52:49 +08:00
|
|
|
map: context.file.dirname.includes('examples') ? false : mapConfig,
|
2020-11-23 22:11:16 +08:00
|
|
|
plugins: {
|
|
|
|
autoprefixer: {
|
|
|
|
cascade: false
|
2020-11-19 21:55:32 +08:00
|
|
|
},
|
2021-12-15 16:52:49 +08:00
|
|
|
rtlcss: context.env === 'RTL'
|
2017-12-16 20:00:38 +08:00
|
|
|
}
|
2017-03-12 11:32:50 +08:00
|
|
|
}
|
2020-11-23 22:11:16 +08:00
|
|
|
}
|