Я использую laravel в паре с vue 3 и получаю надоедливое сообщение в консоли
You are running a development build of Vue.
Make sure to use the production build (*.prod.js) when deploying for production.
Хотя во vue 3 оно должно быть отключено. И
Vue.config.productionTip = false;
в 3 версии уже не работает.
Кто знает как его можно отключить?
// webpack.mix.js
const mix = require('laravel-mix');
const webpack = require('webpack');
mix.ts('resources/js/app.ts', 'public/js').sourceMaps().vue({version: 3});
mix.sass('resources/sass/app.scss', 'public/css');
mix.webpackConfig({
plugins: [
new webpack.DefinePlugin({
__VUE_OPTIONS_API__: false,
__VUE_PROD_DEVTOOLS__: false,
}),
],
});
// package.json
{
"private": true,
"scripts": {
"development": "mix",
"watch": "mix watch",
"watch-poll": "mix watch -- --watch-options-poll=1000",
"hot": "mix watch --hot",
"production": "mix --production"
},
"devDependencies": {
"@vue/compiler-sfc": "^3.0.2",
"axios": "^0.19",
"bootstrap": "^4.0.0",
"cross-env": "^7.0",
"jquery": "^3.2",
"laravel-mix": "^6.0.0-beta.11",
"lodash": "^4.17.19",
"popper.js": "^1.12",
"postcss": "^8.1.4",
"resolve-url-loader": "^2.3.1",
"sass": "^1.20.1",
"sass-loader": "^8.0.0",
"ts-loader": "^8.0.18",
"typescript": "^4.2.3",
"vue": "^3.0.2",
"vue-loader": "^16.0.0-beta.9"
}
}