Change directory of main.js for index

This commit is contained in:
kPherox 2019-04-07 06:43:55 +09:00
parent 63a5833ba5
commit d9eefb7df2
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D
6 changed files with 21 additions and 12 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -4,8 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <title><%= htmlWebpackPlugin.options.title %></title>
<title>TheDesk-Vue</title>
</head> </head>
<body> <body>
<noscript> <noscript>

View File

@ -116,7 +116,7 @@ const template = [
{ role: 'paste' }, { role: 'paste' },
{ role: 'pasteandmatchstyle' }, { role: 'pasteandmatchstyle' },
{ role: 'delete' }, { role: 'delete' },
{ role: 'selectall' } { role: 'selectall' },
] ]
}, },
{ {
@ -126,14 +126,14 @@ const template = [
{ role: 'forcereload' }, { role: 'forcereload' },
{ role: 'toggledevtools' }, { role: 'toggledevtools' },
{ type: 'separator' }, { type: 'separator' },
{ role: 'togglefullscreen' } { role: 'togglefullscreen' },
] ]
}, },
{ {
role: 'Window', role: 'Window',
submenu: [ submenu: [
{ role: 'minimize' }, { role: 'minimize' },
{ role: 'close' } { role: 'close' },
] ]
}, },
{ {
@ -160,7 +160,7 @@ if (process.platform === 'darwin') {
{ role: 'hideothers' }, { role: 'hideothers' },
{ role: 'unhide' }, { role: 'unhide' },
{ type: 'separator' }, { type: 'separator' },
{ role: 'quit' } { role: 'quit' },
) )
template[1].submenu.push( template[1].submenu.push(
@ -169,7 +169,7 @@ if (process.platform === 'darwin') {
label: 'Speech', label: 'Speech',
submenu: [ submenu: [
{ role: 'startspeaking' }, { role: 'startspeaking' },
{ role: 'stopspeaking' } { role: 'stopspeaking' },
] ]
} }
) )
@ -179,7 +179,7 @@ if (process.platform === 'darwin') {
{ role: 'minimize' }, { role: 'minimize' },
{ role: 'zoom' }, { role: 'zoom' },
{ type: 'separator' }, { type: 'separator' },
{ role: 'front' } { role: 'front' },
] ]
} }

View File

@ -1,12 +1,12 @@
<template> <template>
<div id="app"> <div id="app">
<img alt="Vue logo" src="./assets/logo.png"> <img alt="Vue logo" src="@/assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/> <HelloWorld msg="Welcome to Your Vue.js App"/>
</div> </div>
</template> </template>
<script> <script>
import HelloWorld from './components/HelloWorld.vue' import HelloWorld from '@/components/HelloWorld.vue'
export default { export default {
name: 'app', name: 'app',

View File

@ -1,8 +1,8 @@
import Vue from 'vue' import Vue from 'vue'
import App from './App.vue' import Index from './Index.vue'
Vue.config.productionTip = false Vue.config.productionTip = false
new Vue({ new Vue({
render: h => h(App), render: h => h(Index),
}).$mount('#app') }).$mount('#app')

View File

@ -1,5 +1,15 @@
const { productName } = require("./package.json")
module.exports = { module.exports = {
pages: {
index: {
entry: 'src/index/main.js',
template: 'public/index.html',
filename: 'index.html',
title: productName,
},
},
css: { css: {
loaderOptions: { loaderOptions: {
postcss: { postcss: {