Created
June 3, 2018 23:55
-
-
Save markni/fd03686377cfa89a3f386f32984fb6bb to your computer and use it in GitHub Desktop.
Vue-cli 3 webpack resolve alias config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
resolve: { | |
alias: { | |
"@": require("path").resolve(__dirname, "src") | |
} | |
} | |
}; |
@daveberning make sure to point to file in Webstorm settings > Languages & Frameworks > Javascript > Webpack. Worked for me with latest vue cli.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried adding this into my Vue CLI 3 project and it doesn't work. I tried replacing "@" with "@root", and it still does not work.