demo.vue:
<template>
...
</template>
<script type="text/ecmascript-6">
...
</script>
<style lang="scss" rel="stylesheet/scss">
@import "~scss/variables.scss";
.pop-up-box {
...
}
</style>
Everything is fine: coding, compiling, working.
Just WebStorm will display error at
@import "~scss/variables.scss";
Because of WebStorm want to check the path of ~scss/variables.scss
but this path is a webpack alias.
It will show Cannot resolve directory '~scss'
.
Is there any way to let WebStorm know here is a webpack alias or just not show error any more?