Skip to content

一个vue工程下进行多个项目开发,针对每一个项目分别本地运行或打包

Notifications You must be signed in to change notification settings

ailingao/vue-project

Repository files navigation

vue-project

A Vue.js project

Build Setup

# install dependencies
npm install

# 运行项目projectA
npm run d projectA

# 打包项目projectA
npm run b projectA

# 运行项目projectB
npm run d projectB

# 打包项目projectB
npm run b projectB

# 多项目配置路径config/projectConfig.js 示例:
const projectName = require('./project')

const config = {
    //项目projectA
    projectA: {
        localPath: './src/projects/projectA/',//资源目录路径
    },
    //项目projectB
    projectB: {
        localPath: './src/projects/projectB/',//资源目录路径
    },
}

const configObj = config[projectName.name]
module.exports = configObj

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

About

一个vue工程下进行多个项目开发,针对每一个项目分别本地运行或打包

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published