mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-06 12:17:13 +08:00
16 lines
345 B
JavaScript
16 lines
345 B
JavaScript
// terse cssr
|
|
const { terseCssr } = require('./terse-cssr')
|
|
|
|
// replace __DEV__
|
|
const { replaceDefine, outDirs, srcDir } = require('../utils')
|
|
|
|
;(async () => {
|
|
await terseCssr()
|
|
await replaceDefine(outDirs, {
|
|
__DEV__: "process.env.NODE_ENV !== 'production'"
|
|
})
|
|
await replaceDefine([srcDir], {
|
|
"'lodash'": "'lodash-es'"
|
|
})
|
|
})()
|