Skip to content

Conversation

@Kocal
Copy link
Owner

@Kocal Kocal commented Oct 22, 2018

Q A
Bug fix? no
New feature? yes
Tests pass? yes
Fixed tickets ~

In order to load Vue Devtools remote <script> (#334 (comment)) only for development environment, a good solution is to use a condition (with EJS) on HTML files.

That means you can write:

<% if (NODE_ENV === 'development') { %>
<script src="http://localhost:8098"></script>
<% } %>

@Kocal Kocal merged commit 8171f3e into master Oct 23, 2018
@Kocal Kocal deleted the feat/use-ejs-on-html-files branch October 23, 2018 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants