Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using scss //#SourceMappingURL #92

Closed
5 tasks done
neostfox opened this issue Jan 13, 2023 · 1 comment · Fixed by #96
Closed
5 tasks done

Using scss //#SourceMappingURL #92

neostfox opened this issue Jan 13, 2023 · 1 comment · Fixed by #96

Comments

@neostfox
Copy link
Contributor

Describe the bug

`> @ build D:\github\neostfox\unplugin-vue\examples\esbuild

tsx build.ts

▲ [WARNING] Comments in CSS use "/* ... */" instead of "//" [js-comment-in-css]

unplugin-vue:D:\github\neostfox\unplugin-vue\examples\esbuild\src\App.vue?vue&type=style&index=0&lang.scss:7:0:
  7 │ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRDovZ2l0aHViL25lb3N0Zm94L3VucGx1Z... 
    ╵ ~~`

when use scss and set preprocessLang as 'scss'

should chang ({ mappings: '' } as any) to (null as any) ({ mappings: '' } as any)

Reproduction

https://github.com/neostfox/unplugin-vue

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (16) x64 AMD Ryzen 7 PRO 5850U with Radeon Graphics
    Memory: 10.23 GB / 30.83 GB
  Binaries:
    Node: 16.17.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
    npm: 8.15.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.963.0), Chromium (108.0.1462.76)
    Internet Explorer: 11.0.22621.1

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@neostfox
Copy link
Contributor Author

不管是css还是 scss,即使配置了
{ test: /\.css$/i, use: [ MiniCssExtractPlugin.loader, { loader: 'css-loader', options: { esModule: false } } ] },
webpack 依旧报错。

@sxzz sxzz linked a pull request Mar 15, 2023 that will close this issue
@sxzz sxzz closed this as completed in #96 Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant