update
This commit is contained in:
@@ -4,22 +4,25 @@ import {UnifiedViteWeappTailwindcssPlugin} from 'weapp-tailwindcss/vite';
|
||||
import tailwindcss from '@tailwindcss/postcss'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
uni.default(),
|
||||
UnifiedViteWeappTailwindcssPlugin({
|
||||
rem2rpx: true,
|
||||
})
|
||||
],
|
||||
css: {
|
||||
plugins: [uni.default({
|
||||
script: {
|
||||
defineModel: true,
|
||||
}
|
||||
}), UnifiedViteWeappTailwindcssPlugin({
|
||||
rem2rpx: true,
|
||||
})], css: {
|
||||
postcss: {
|
||||
plugins: [
|
||||
tailwindcss()
|
||||
]
|
||||
},
|
||||
preprocessorOptions: {
|
||||
plugins: [tailwindcss()]
|
||||
}, preprocessorOptions: {
|
||||
scss: {
|
||||
silenceDeprecations: ['legacy-js-api'],
|
||||
}
|
||||
},
|
||||
},
|
||||
}, server: {
|
||||
proxy: {
|
||||
'/baseApi': {
|
||||
target: 'http://192.168.1.105', changeOrigin: true, rewrite: (path) => path.replace(/^\/baseApi/, ''),
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user