Skip to content

preload scss has been added hash #6210

Open
@shlroland

Description

@shlroland

Version

4.5.9

Environment info


  System:
    OS: Windows 10 10.0.18363
    CPU: (12) x64 Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz  
  Binaries:
    Node: 14.6.0 - C:\Program Files\nodejs\node.EXE        
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.14.6 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 87.0.4280.141
    Edge: Spartan (44.18362.449.0)
  npmPackages:
    @ant-design/icons-vue:  5.1.9
    @vue/babel-helper-vue-jsx-merge-props:  1.2.1
    @vue/babel-helper-vue-transform-on:  1.0.0
    @vue/babel-plugin-jsx:  1.0.1
    @vue/babel-plugin-transform-vue-jsx:  1.2.1
    @vue/babel-preset-app:  4.5.10
    @vue/babel-preset-jsx:  1.2.4
    @vue/babel-sugar-composition-api-inject-h:  1.2.1
    @vue/babel-sugar-composition-api-render-instance:  1.2.4
    @vue/babel-sugar-functional-vue:  1.2.2
    @vue/babel-sugar-inject-h:  1.2.2
    @vue/babel-sugar-v-model:  1.2.3
    @vue/babel-sugar-v-on:  1.2.3
    @vue/cli-overlay:  4.5.10
    @vue/cli-plugin-babel: ~4.5.9 => 4.5.10
    @vue/cli-plugin-eslint: ~4.5.9 => 4.5.10
    @vue/cli-plugin-router: ~4.5.9 => 4.5.10
    @vue/cli-plugin-typescript: ~4.5.9 => 4.5.10
    @vue/cli-plugin-vuex: ~4.5.9 => 4.5.10
    @vue/cli-service: ~4.5.9 => 4.5.10
    @vue/cli-shared-utils:  4.5.10
    @vue/compiler-core:  3.0.5
    @vue/compiler-dom:  3.0.5
    @vue/compiler-sfc: ^3.0.5 => 3.0.5
    @vue/compiler-ssr:  3.0.5
    @vue/component-compiler-utils:  3.2.0
    @vue/eslint-config-standard: ^5.1.2 => 5.1.2
    @vue/eslint-config-typescript: ^5.0.2 => 5.1.0
    @vue/preload-webpack-plugin:  1.1.2
    @vue/reactivity:  3.0.5
    @vue/runtime-core:  3.0.5
    @vue/runtime-dom:  3.0.5
    @vue/shared:  3.0.5
    @vue/web-component-wrapper:  1.2.0
    @vuedx/vue-virtual-textdocument:  0.4.1
    ant-design-vue: ^2.0.0-rc.7 => 2.0.0-rc.8
    eslint-plugin-vue: ^7.4.1 => 7.4.1
    typescript: ^4.1.3 => 4.1.3
    vue: ^3.0.5 => 3.0.5
    vue-eslint-parser:  7.3.0
    vue-hot-reload-api:  2.3.4
    vue-loader:  15.9.6 (16.1.2)
    vue-router: ^4.0.2 => 4.0.3
    vue-style-loader:  4.1.2
    vue-template-es2015-compiler:  1.9.1
    vue-types: ^3.0.1 => 3.0.1
    vuex: ^4.0.0-rc.2 => 4.0.0-rc.2
    vuex-module-decorators: ^1.0.1 => 1.0.1
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

css: {
    loaderOptions: {
      scss: {
        additionalData: `@import "~@/style/index.scss";`,
      },
    },
  },

i have set this config in vue.config.js,but some global class have been added hash after the selector

What is expected?

no hash

What is actually happening?

have hash

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproductionThis issue is missing a minimal runnable reproduction, provided by the author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions