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 mode to production (and update webpack in the process) #162

Open
wants to merge 2 commits into
base: release/2.0.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions _template/app/js/main.bundle.js

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions _template/app/js/main.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
const Vue = require('vue/dist/vue');
import Vue from 'vue';
import VueResource from 'vue-resource';

const hljs = require('highlightjs');
const marked = require('marked');
const smoothScroll = require('smooth-scroll');
const postcss = require('postcss');
const prefixer = require('postcss-prefix-selector');

Vue.use(require('vue-resource'));

Vue.use(VueResource);

/**
* Component component
Expand Down Expand Up @@ -327,7 +329,7 @@ var Astrum = new Vue({
breakpoint: 960,
mobile_view: false,
open_nav: false,
rtime: new Date(1, 1, 2000, 12,00,00),
rtime: new Date(1, 1, 2000, 12,0,0),
timeout: false,
delta: 200,
return_load_time: false,
Expand Down Expand Up @@ -673,7 +675,7 @@ var Astrum = new Vue({
head.appendChild(meta);

// Set favicon.
link = document.createElement('link');
var link = document.createElement('link');

link.rel = 'shortcut icon';
link.href = _this.project_favicon;
Expand Down Expand Up @@ -705,7 +707,6 @@ var Astrum = new Vue({
*/
loadDataFile: function () {
var _this = this;

_this.$http.get('./data.json' + '?cb=' + new Date()).then(function (response) {
_this.initData(response.data, function() {
_this.injectThemeStyles();
Expand Down
22 changes: 0 additions & 22 deletions _template/app/js/main.min.js

This file was deleted.

2 changes: 1 addition & 1 deletion _template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ <h3 class="ndpl-component__title">{{ component.title }}</h3>
</div>
</div>

<script src="app/js/main.min.js"></script>
<script src="app/js/main.bundle.js"></script>

</body>
</html>
Loading