@usoft-fe/vue-cli

1.0.10 • Public • Published

usoft-fe/vue-cli

Chongqing ©USoft front-end vue-cli.

Install

> npm i -g @usoft-fe/vue-cli

Use

> usoft-vue create <app-name>
> cd <app-name>
> yarn start
# or
> npm start

Configuration

Create usoft.config.js in your project root directory;

module.exports = {
    less(config) {
        // update config object
        return config;
    },
    sass() {
        // update config object
        return config;
    },
    ts(config) {
        // update config object
        return [config];
    },
    // https://www.webpackjs.com/configuration/module/
    overwriteLoaders(loaders) {
        // update loaders object
        return loaders;
    },
    // https://www.webpackjs.com/configuration/plugins/
    overwritePlugins(plugins) {
        // update plugins object
        return plugins;
    },
    // https://www.webpackjs.com/configuration/dev-server/#devserver
    devServer: DevServerConfiguration,
    // https://www.webpackjs.com/configuration/
    webpack: WebpackConfiguration,
}

/@usoft-fe/vue-cli/

    Package Sidebar

    Install

    npm i @usoft-fe/vue-cli

    Weekly Downloads

    0

    Version

    1.0.10

    License

    ISC

    Unpacked Size

    361 kB

    Total Files

    25

    Last publish

    Collaborators

    • leo_ran