Skip to content

Commit

Permalink
测试
Browse files Browse the repository at this point in the history
  • Loading branch information
jsxiaosi committed Jun 18, 2021
1 parent e3bd5bd commit 1dfc67f
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
5 changes: 4 additions & 1 deletion build/vite/plugin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import { configSvgPlugin } from './svg';
// 压缩
import { configCompressPlugin } from './compress'

import viteESLint from '@ehutch79/vite-eslint'


export function createVitePlugins() {
const vitePlugins = [
vue()
Expand All @@ -21,6 +24,6 @@ export function createVitePlugins() {

vitePlugins.push(configCompressPlugin('gzip',true))


vitePlugins.push(viteESLint())
return vitePlugins
}
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"test:gzip": "http-server dist --cors --gzip -c-1",
"test:br": "http-server dist --cors --brotli -c-1",
"lint:eslint": "eslint \"{src,mock}/**/*.{vue,js}\" --fix",
"lint:stylelint": "stylelint --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/"
"lint:stylelint": "stylelint --fix \"**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
"lint:staged": "lint-staged"
},
"dependencies": {
"element-plus": "^1.0.2-beta.46",
Expand All @@ -24,6 +25,7 @@
"vuex": "^4.0.1"
},
"devDependencies": {
"@ehutch79/vite-eslint": "^0.0.1",
"@vitejs/plugin-vue": "^1.2.3",
"@vue/compiler-sfc": "^3.0.5",
"@zougt/vite-plugin-theme-preprocessor": "^1.0.0",
Expand Down
4 changes: 3 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
</template>

<script setup>
import HelloWorld from './components/HelloWorld.vue'
import HelloWorld from './components/HelloWorld.vue'
let admin='asdasdasdas'
// This starter template is using Vue 3 experimental <script setup> SFCs
// Check out https://github.com/vuejs/rfcs/blob/script-setup-2/active-rfcs/0000-script-setup.md
Expand Down

0 comments on commit 1dfc67f

Please sign in to comment.