Closed moimael closed 7 years ago
Hi @moimael,
Good catch. I'll have a look 👍
Tried to add it https://github.com/typicode/hotel/blob/master/package.json#L21 and passing -p
to webpack as well.
But for some reasons, I'm still getting the message. If you or someone else want to have a look, feel free :)
You need to use the webpack define plugin for this. See https://vue-loader.vuejs.org/en/workflow/production.html
Also you are not forced to hardcode the production string, you can pass process.env.NODE_ENV to it.
But based on docs, doesn't -p
add it for you https://webpack.js.org/api/cli/#shortcuts --define process.env.NODE_ENV="production"
?
Fixed :)
It seems the alias wasn't pointing to the right file https://github.com/typicode/hotel/blob/master/webpack.config.js#L33
Hi,
I'm running hotel 0.6.1 and i get this warning in the console:
Can you consider building with optimizations enabled ?
Thanks !