diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js
index c5b5098..204cc79 100644
--- a/build/webpack.base.conf.js
+++ b/build/webpack.base.conf.js
@@ -10,7 +10,11 @@ module.exports = {
},
module: {
rules: [
-
+ {
+ test: /\.js$/,
+ use: 'babel-loader',
+ exclude: /node_modules/
+ }
]
},
plugins: [
diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js
index 9a9b7e3..b4b3c10 100644
--- a/build/webpack.prod.conf.js
+++ b/build/webpack.prod.conf.js
@@ -1,5 +1,5 @@
const merge = require('webpack-merge');
-const CleanWebpackPlugin = require('clean-webpack-plugin');
+const {CleanWebpackPlugin} = require('clean-webpack-plugin');
const path = require('path');
const baseConfig = require('./webpack.base.conf');
module.exports = merge(baseConfig, {
@@ -9,7 +9,12 @@ module.exports = merge(baseConfig, {
rules: []
},
plugins: [
- new CleanWebpackPlugin(['dist/'], {
+ // new CleanWebpackPlugin(['dist/'], {
+ // root: path.resolve(__dirname, '../'),
+ // verbose: true,
+ // dry: false
+ // }),
+ new CleanWebpackPlugin({
root: path.resolve(__dirname, '../'),
verbose: true,
dry: false
diff --git a/index.html b/index.html
index f57f42a..ead0d5e 100644
--- a/index.html
+++ b/index.html
@@ -10,7 +10,6 @@
vue2spa
-
diff --git a/src/index.js b/src/index.js
index 10d8e0c..6e69942 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,10 +1,13 @@
-/* 项目启动 */
-import Vue from 'vue'
-import App from './App.vue'
-import router from './router'
+// /* 项目启动 */
+// import Vue from 'vue'
+// import App from './App.vue'
+// import router from './router'
-new Vue({
- router: router,
- render: h => h(App)
- // components: { firstcomponent, secondcomponent }
-}).$mount('#app')
+// new Vue({
+// router: router,
+// render: h => h(App)
+// // components: { firstcomponent, secondcomponent }
+// }).$mount('#app')
+
+const x = 'index.js';
+console.log(x);
\ No newline at end of file
diff --git a/static/.gitkeep b/static/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/static/reset.css b/static/reset.css
deleted file mode 100644
index 2340d67..0000000
--- a/static/reset.css
+++ /dev/null
@@ -1,70 +0,0 @@
-@charset "utf-8";
-
-/*清零*/
-body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { margin:0; padding:0;}
-fieldset,img { border:0;}
-ol,ul { list-style:none; }
-h1,h2,h3,h4,h5,h6,button,input,select,textarea { font-size:100%;
- font-weight: normal; }
-button::-moz-focus-inner,input::-moz-focus-inner{ padding:0; border:0; }
-table{ border-collapse: collapse; border-spacing: 0; }
-i, cite, em, var, dfn, address { font-style: normal; }
-body{ font:14px "方正兰亭细黑简体","微软雅黑","宋体",Arial;}
-a{ text-decoration:none; outline: none;}
-a:hover{ text-decoration: none; }
-a:active, a:focus{ outline:none; }
-b{ font-weight: normal; }
-input:not([type="radio"]){appearance:none;-webkit-appearance:none;-o-appearance:none;-moz-appearance:none;}
-button:active{
- transform:scale(0.9);
- -webkit-transform: scale(0.9);
- -moz-transform: scale(0.9);
- -ms-transform: scale(0.9);
- -o-transform: scale(0.9);
-}
-textarea{
- appearance: none;
- -webkit-appearance: none;
- -moz-appearance: none;
- -o-appearance: none;
- resize: none;
-}
-input{
- border-radius: 0;
-}
-
-*{
- box-sizing: border-box;
-}
-
-a{
- color: #232323;
-}
-button{
- background: none;
-}
-
-.text-center{
- text-align: center;
-}
-.container{
- padding: 0 10px;
-}
-
-[v-cloak] {
- display: none;
-}
-
-/* common css */
-.col2{
- width: 50%;
-}
-.col3{
- width: 33.33%;
-}
-.col4{
- width: 25%;
-}
-.col6{
- width: 16.66%;
-}