Clean source folder
parent
69d8cd6343
commit
953fbfba6f
|
@ -20,7 +20,7 @@ module.exports = merge(baseWebpackConfig, {
|
||||||
},
|
},
|
||||||
devtool: '#cheap-module-eval-source-map',
|
devtool: '#cheap-module-eval-source-map',
|
||||||
output: {
|
output: {
|
||||||
path: config.dev.assetsRoot,
|
path: config.assetsRoot,
|
||||||
filename: utils.assetsPath('js/[name].[chunkhash].js'),
|
filename: utils.assetsPath('js/[name].[chunkhash].js'),
|
||||||
chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
|
chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
|
||||||
},
|
},
|
||||||
|
@ -38,7 +38,7 @@ module.exports = merge(baseWebpackConfig, {
|
||||||
// you can customize output by editing /index.html
|
// you can customize output by editing /index.html
|
||||||
// see https://github.com/ampedandwired/html-webpack-plugin
|
// see https://github.com/ampedandwired/html-webpack-plugin
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
filename: config.dev.index,
|
filename: config.index,
|
||||||
template: 'assets/index.html',
|
template: 'assets/index.html',
|
||||||
inject: true,
|
inject: true,
|
||||||
// necessary to consistently work with multiple chunks via CommonsChunkPlugin
|
// necessary to consistently work with multiple chunks via CommonsChunkPlugin
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
import CodeMirror from '@/codemirror'
|
import CodeMirror from '@/utils/codemirror'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'editor',
|
name: 'editor',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import App from './App'
|
import App from './App'
|
||||||
import store from './store/store'
|
import store from './store'
|
||||||
import router from './router'
|
import router from './router'
|
||||||
|
|
||||||
Vue.config.productionTip = true
|
Vue.config.productionTip = true
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import store from '../store/store'
|
import store from '@/store'
|
||||||
|
|
||||||
const ssl = (window.location.protocol === 'https:')
|
const ssl = (window.location.protocol === 'https:')
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import cookie from './cookie'
|
import cookie from './cookie'
|
||||||
import store from '@/store/store'
|
import store from '@/store'
|
||||||
import router from '@/router'
|
import router from '@/router'
|
||||||
|
|
||||||
function parseToken (token) {
|
function parseToken (token) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// Most of the code from this file comes from:
|
// Most of the code from this file comes from:
|
||||||
// https://github.com/codemirror/CodeMirror/blob/master/addon/mode/loadmode.js
|
// https://github.com/codemirror/CodeMirror/blob/master/addon/mode/loadmode.js
|
||||||
import * as CodeMirror from 'codemirror'
|
import * as CodeMirror from 'codemirror'
|
||||||
import store from '@/store/store'
|
import store from '@/store'
|
||||||
|
|
||||||
// Make CodeMirror available globally so the modes' can register themselves.
|
// Make CodeMirror available globally so the modes' can register themselves.
|
||||||
window.CodeMirror = CodeMirror
|
window.CodeMirror = CodeMirror
|
Loading…
Reference in New Issue