mirror of
https://github.com/xsf0105/vue3-h5-template.git
synced 2025-04-06 04:00:04 +08:00
Feat build
This commit is contained in:
parent
0af1995bc0
commit
8dd524d82a
@ -10,7 +10,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
{
|
||||||
|
test: /\.js$/,
|
||||||
|
use: 'babel-loader',
|
||||||
|
exclude: /node_modules/
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
const merge = require('webpack-merge');
|
const merge = require('webpack-merge');
|
||||||
const CleanWebpackPlugin = require('clean-webpack-plugin');
|
const {CleanWebpackPlugin} = require('clean-webpack-plugin');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const baseConfig = require('./webpack.base.conf');
|
const baseConfig = require('./webpack.base.conf');
|
||||||
module.exports = merge(baseConfig, {
|
module.exports = merge(baseConfig, {
|
||||||
@ -9,7 +9,12 @@ module.exports = merge(baseConfig, {
|
|||||||
rules: []
|
rules: []
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new CleanWebpackPlugin(['dist/'], {
|
// new CleanWebpackPlugin(['dist/'], {
|
||||||
|
// root: path.resolve(__dirname, '../'),
|
||||||
|
// verbose: true,
|
||||||
|
// dry: false
|
||||||
|
// }),
|
||||||
|
new CleanWebpackPlugin({
|
||||||
root: path.resolve(__dirname, '../'),
|
root: path.resolve(__dirname, '../'),
|
||||||
verbose: true,
|
verbose: true,
|
||||||
dry: false
|
dry: false
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
<meta name="format-detection" content="telephone=no">
|
<meta name="format-detection" content="telephone=no">
|
||||||
<meta name="format-detection" content="address=no">
|
<meta name="format-detection" content="address=no">
|
||||||
<title>vue2spa</title>
|
<title>vue2spa</title>
|
||||||
<link rel="stylesheet" href="./static/reset.css">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
21
src/index.js
21
src/index.js
@ -1,10 +1,13 @@
|
|||||||
/* 项目启动 */
|
// /* 项目启动 */
|
||||||
import Vue from 'vue'
|
// import Vue from 'vue'
|
||||||
import App from './App.vue'
|
// import App from './App.vue'
|
||||||
import router from './router'
|
// import router from './router'
|
||||||
|
|
||||||
new Vue({
|
// new Vue({
|
||||||
router: router,
|
// router: router,
|
||||||
render: h => h(App)
|
// render: h => h(App)
|
||||||
// components: { firstcomponent, secondcomponent }
|
// // components: { firstcomponent, secondcomponent }
|
||||||
}).$mount('#app')
|
// }).$mount('#app')
|
||||||
|
|
||||||
|
const x = 'index.js';
|
||||||
|
console.log(x);
|
@ -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%;
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user