Skip to content

How can one chunk vendor CSS? (from SaSS) #3252

@scniro

Description

@scniro

Version

3.2.3

Reproduction link

https://stackoverflow.com/questions/53964974/vue-js-cli-3-how-can-i-create-a-vendor-bundle-for-css-sass

Environment info

System:
    OS: macOS 10.14.2
    CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
  Binaries:
    Node: 10.13.0 - ~/.nvm/versions/node/v10.13.0/bin/node
    Yarn: Not Found
    npm: 6.4.1 - ~/.nvm/versions/node/v10.13.0/bin/npm
  Browsers:
    Chrome: 71.0.3578.98
    Firefox: 64.0
    Safari: 12.0.2
  npmPackages:
    @vue/babel-preset-app:  3.2.2
    @vue/cli-overlay:  3.2.0
    @vue/cli-plugin-babel: 3.2.2 => 3.2.2
    @vue/cli-service: 3.2.3 => 3.2.3
    @vue/cli-shared-utils:  3.2.2
    @vue/component-compiler-utils:  2.4.0
    @vue/preload-webpack-plugin:  1.1.0
    @vue/web-component-wrapper:  1.2.0
    babel-helper-vue-jsx-merge-props:  2.0.3
    babel-plugin-transform-vue-jsx:  4.0.1
    vue: 2.5.21 => 2.5.21
    vue-hot-reload-api:  2.3.1
    vue-loader:  15.4.2
    vue-router: 3.0.2 => 3.0.2
    vue-style-loader:  4.1.2
    vue-template-compiler: 2.5.21 => 2.5.21
    vue-template-es2015-compiler:  1.6.0
    vuex: 3.0.1 => 3.0.1
  npmGlobalPackages:
    @vue/cli: 3.2.1

Steps to reproduce

npm run build

What is expected?

chuck vendor SaSS to a separate file, similar to how chunks-vendor.js is handled

What is actually happening?

all SaSS is transpiled to one CSS file


I have tried every which way I can think to chunk out to a vendor CSS file to no avail. The issue details and expected output is thoroughly demonstrated through a question (unanswered) on StackOverflow: https://stackoverflow.com/questions/53964974/vue-js-cli-3-how-can-i-create-a-vendor-bundle-for-css-sass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions