Vue模板、JS、CSS分离实现
# 安装依赖
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.