mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
18 lines
396 B
JavaScript
18 lines
396 B
JavaScript
|
module.exports = function naiveSCSSExportVariable () {
|
||
|
return {
|
||
|
name: 'naive-scss-export-variable',
|
||
|
resolveId (source) {
|
||
|
if (source.endsWith('jsIndex.scss')) {
|
||
|
return 'naive-scss-js-index'
|
||
|
}
|
||
|
return null
|
||
|
},
|
||
|
load (id) {
|
||
|
if (id === 'naive-scss-js-index') {
|
||
|
return `export default 'naive-scss-js-index'`
|
||
|
}
|
||
|
return null
|
||
|
}
|
||
|
}
|
||
|
}
|