mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-15 04:42:23 +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
|
|
}
|
|
}
|
|
}
|