mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-15 04:42:23 +08:00
22 lines
650 B
JavaScript
22 lines
650 B
JavaScript
const path = require('path')
|
|
|
|
const mdPlugin = require('./demo/vite-plugins/mdPlugin')
|
|
|
|
module.exports = {
|
|
root: __dirname,
|
|
plugins: [ mdPlugin() ],
|
|
optimizeDeps: {
|
|
include: ['highlight.js/lib/languages/cpp', 'highlight.js/lib/highlight',
|
|
'highlight.js/lib/languages/javascript', 'highlight.js/lib/languages/python', 'vooks']
|
|
},
|
|
alias: {
|
|
'/@naive-ui/lib/icons/': path.resolve(__dirname, './src/_icons'),
|
|
'/@naive-ui/': path.resolve(__dirname, './src'),
|
|
'src': path.resolve(__dirname, './src')
|
|
},
|
|
define: {
|
|
'process.env.NODE_ENV': `'${process.env.NODE_ENV}'`,
|
|
'__DEV__': process.env === 'development'
|
|
}
|
|
}
|