Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Vue to Production version for deployment #129

Open
dlewand691 opened this issue Jul 6, 2017 · 3 comments
Open

Change Vue to Production version for deployment #129

dlewand691 opened this issue Jul 6, 2017 · 3 comments
Assignees

Comments

@dlewand691
Copy link

dlewand691 commented Jul 6, 2017

In Astrum 2.0.0-rc5, I'm seeing that Vue is running in development mode from this message

You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html

How do I switch Vue into Production mode?

Your environment

Platform: Mac
OS Version: 10.12.5
Node Version: 8.1.2
NPM Version: 5.0.3
Astrum Version: 2.0.0-rc5

@RyanHavoc
Copy link
Member

@dlewand691 I'll be sure to turn this off in the next release. Thanks!

@RyanHavoc RyanHavoc self-assigned this Jul 10, 2017
@RyanHavoc RyanHavoc added the bug label Jul 10, 2017
@dlewand691
Copy link
Author

Thanks!

@giothevanni
Copy link

Hey @RyanHavoc,
hoping this to be a quick win, I started taking a look at it and just kept running into walls, at first webpack was complaining that the config needs an absolute path for output, which I changed according their docs. After that, an UglifyJs compilation error (see Screenshot below)

screen shot 2017-11-26 at 21 47 18

After inspecting the compiled code (main.min.js, line 23.525), I found it out to be just ES6 String template syntax. I searched for that expression in the currently checked in main.min.js on the release/2.0.0 branch and didn't find it. So I'm wondering, how did the current main.min.js get generated, or is it just my environment?

I would appreciate it if you could share some insight into this.
(Here's a link to my branch: https://github.com/giothevanni/astrum/tree/bug/change-vue-to-prod)

My environment
Platform: Mac
OS Version: 10.12.6
Node Version: 8.3
NPM Version: 5.5.1
Astrum Version: 2.0.0-rc5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants