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