提交 5ac1cf14 编写于 作者: B baiy 提交者: ninecents

优化打开速度

上级 7a2f3e8e
{ {
"name": "c-tool", "name": "c-tool",
"version": "0.0.11", "version": "0.0.12",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve --port 8081", "serve": "vue-cli-service serve --port 8081",
......
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>加载中...</title>
</head>
<body>
<div id="page" style="width: 800px;height: 550px;margin: 0 auto;padding: 0 6px;overflow-y:auto;">
加载中....
</div>
<script src=/index.js></script>
</body>
</html>
window.location = "/tool.html";
\ No newline at end of file
...@@ -5,7 +5,7 @@ import router from './router' ...@@ -5,7 +5,7 @@ import router from './router'
import optionBlock from './components/optionBlock' import optionBlock from './components/optionBlock'
import codeHighlight from './components/codeHighlight' import codeHighlight from './components/codeHighlight'
import {plugin as modelPlugin} from './tool/model' import {plugin as modelPlugin} from './tool/model'
import App from './App.vue' import App from './Tool.vue'
Vue.config.productionTip = false; Vue.config.productionTip = false;
......
const config = { const config = {
productionSourceMap: true, productionSourceMap: true,
pages: { pages: {
index: { tool: {
entry: 'src/main.js', entry: 'src/tool.js',
template: 'src/index.html', template: 'public/tool.html',
}, }
}, },
chainWebpack: config => { chainWebpack: config => {
config.plugin('define').tap(args => { config.plugin('define').tap(args => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册