mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(cli):add vue feature flags
This commit is contained in:
parent
ffeb656505
commit
0459ff5cb4
@ -1,4 +1,5 @@
|
|||||||
import sass from 'sass';
|
import sass from 'sass';
|
||||||
|
import webpack from 'webpack';
|
||||||
import FriendlyErrorsPlugin from '@nuxt/friendly-errors-webpack-plugin';
|
import FriendlyErrorsPlugin from '@nuxt/friendly-errors-webpack-plugin';
|
||||||
import { VueLoaderPlugin } from 'vue-loader';
|
import { VueLoaderPlugin } from 'vue-loader';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
@ -34,6 +35,10 @@ const CSS_LOADERS = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
const plugins = [
|
const plugins = [
|
||||||
|
new webpack.DefinePlugin({
|
||||||
|
__VUE_OPTIONS_API__: 'true',
|
||||||
|
__VUE_PROD_DEVTOOLS__: 'false'
|
||||||
|
}),
|
||||||
new VueLoaderPlugin(),
|
new VueLoaderPlugin(),
|
||||||
new FriendlyErrorsPlugin({
|
new FriendlyErrorsPlugin({
|
||||||
clearConsole: false,
|
clearConsole: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user