adjust Lightning CSS API
This commit is contained in:
parent
20856edaa1
commit
91fb37cbe3
2 changed files with 1 additions and 5 deletions
|
|
@ -45,15 +45,12 @@ async function lightningcss(result, { map = true, minify = true } = {}) {
|
|||
sourceMap: result.map === undefined ? map : !!result.map,
|
||||
inputSourceMap: result.map ? result.map.toString() : undefined,
|
||||
targets: lightning.browserslistToTargets(browserslist(browsersListConfig)),
|
||||
drafts: {
|
||||
nesting: true,
|
||||
},
|
||||
include: Features.Nesting,
|
||||
exclude: Features.LogicalProperties,
|
||||
})
|
||||
|
||||
return Object.assign(result, {
|
||||
css: transformed.code.toString('utf8'),
|
||||
css: transformed.code.toString(),
|
||||
map: result.map
|
||||
? Object.assign(result.map, {
|
||||
toString() {
|
||||
|
|
|
|||
|
|
@ -67,7 +67,6 @@ module.exports = function tailwindcss(configOrPath) {
|
|||
sourceMap: !!intermediateMap,
|
||||
targets: lightningcss.browserslistToTargets(browserslist(browsersListConfig)),
|
||||
drafts: {
|
||||
nesting: true,
|
||||
customMedia: true,
|
||||
},
|
||||
nonStandard: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue