mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Add ~ alias
This commit is contained in:
parent
cb3bf4c320
commit
8ae76db287
@ -26,6 +26,7 @@ module.exports = function () {
|
||||
resolve: {
|
||||
// Disable for now
|
||||
alias: {
|
||||
'~': join(this.dir),
|
||||
'static': join(this.dir, 'static'), // use in template with <img src="~static/nuxt.png" />
|
||||
'~static': join(this.dir, 'static'),
|
||||
'assets': join(this.dir, 'assets'), // use in template with <img src="~static/nuxt.png" />
|
||||
|
Loading…
Reference in New Issue
Block a user