Sure would be nice if PhpStorm/WebStorm had better SCSS handling.
-
-
Replying to @danielsdeboer
Hi Daniel, what problems do you have with SCSS in WebStorm? It would be great to hear your feedback!
2 replies 0 retweets 0 likes -
Replying to @WebStormIDE
I should mention that these are both in Vue <style lang="scss"> blocks: 1) Can't resolve webpack aliases (which compile fine), eg
@import '@/scss/main'; 2) Commenting a line sometimes uses HTML comments3 replies 0 retweets 0 likes -
Replying to @danielsdeboer @import
1. Can you please check if you have path to your webpack config where the aliases are described in Preferences | Languaged & Frameworks | JavaScript | webpack. For the default Vue CLI app, the path should be: <project>/node_modules/@vue/cli-service/webpack.config.js
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE @import
Yeah that's set up, and aliases work elsewhere, for JS imports and such.
1 reply 0 retweets 0 likes -
Replying to @danielsdeboer @import
Do you have paths starting with `@` or `~@` in SCSS?
1 reply 0 retweets 0 likes -
Can you please try it with `~@`? The IDE supports paths like that according to https://cli.vuejs.org/guide/css.html#referencing-assets …
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.