1166544 / vue-split-css-html-js-files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-split-css-html-js-files

Vue模板、JS、CSS分离实现

说明文档:

https://juejin.im/post/5cdffa2af265da1b8e706f23

使用部骤

# 安装依赖
npm install

# 本地运行 然后访问localhost:8080
npm run dev

# 生产压缩打包
npm run build

# 自动生成模板组件,比如:
npm run vux-generate src/components/vector/VectorComponent.vue
# 请注意: src/components/vector/VectorComponent.vue 为想要创建的组件目录

# 带统计报告打包
npm run build --report

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

About


Languages

Language:JavaScript 93.4%Language:Vue 3.7%Language:HTML 2.2%Language:CSS 0.7%