vue-cli-plugin-source-dir

0.1.0 • Public • Published

vue-source-dir

Add the option to configure the source directory for Vue CLI

Quick start

Navigate to your Vue CLI 3 project and run:

$ vue add source-dir

Then in your vue.config.js file, set the following:

// vue.config.js
module.exports = {
    pluginOptions: {
        sourceDir: "client"
    }
}

Replace client with whichever directory you wish to use instead of src. Finally, simply rename the src directory and you should be good to go!

Package Sidebar

Install

npm i vue-cli-plugin-source-dir

Weekly Downloads

13

Version

0.1.0

License

MIT

Unpacked Size

2.09 kB

Total Files

3

Last publish

Collaborators

  • sam3d