Skip to content

Use alias for base url? #2308

Open
Open
@peteruithoven

Description

@peteruithoven

Feature request

What problem does this feature solve?

When using a different base it's not possible to use the regular image markdown syntax, for example:

![Forest](/images/forest.jpg)

Currently the workaround is using html and withBase

<img :src="$withBase('/images/forest.jpg')" alt="Forest">

What does the proposed API look like?

Would it be possible to use a webpack alias to refer to the base url? For example:

![Forest](~@base/public/images/forest.jpg)

But, this doesn't work out of the box. I tried this and got the following error

Module not found: Error: Can't resolve '@base/public/images/forest.jpg' in '/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/src/blog'
resolve '@base/public/images/forest.jpg' in '/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/src/blog'
  Parsed request is a module
  using description file: /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/package.json (relative path: ./src/blog)
    aliased with mapping '@base': 'src/.vuepress' to 'src/.vuepress/public/images/forest.jpg'
      Parsed request is a module
      using description file: /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/package.json (relative path: ./src/blog)
        Field 'browser' doesn't contain a valid alias configuration
        resolve as module
          looking for modules in /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/webpack/node_modules
            using description file: /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/package.json (relative path: ./lib/node/webpack/node_modules)
              Field 'browser' doesn't contain a valid alias configuration
              using description file: /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/package.json (relative path: ./lib/node/webpack/node_modules/src/.vuepress/public/images/forest.jpg)
                no extension
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/webpack/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
                .js
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/webpack/node_modules/src/.vuepress/public/images/forest.jpg.js doesn't exist
                .jsx
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/webpack/node_modules/src/.vuepress/public/images/forest.jpg.jsx doesn't exist
                .vue
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/webpack/node_modules/src/.vuepress/public/images/forest.jpg.vue doesn't exist
                .json
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/webpack/node_modules/src/.vuepress/public/images/forest.jpg.json doesn't exist
                .styl
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/webpack/node_modules/src/.vuepress/public/images/forest.jpg.styl doesn't exist
                as directory
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/webpack/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
          looking for modules in /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/node_modules
            using description file: /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/package.json (relative path: ./lib/node/node_modules)
              Field 'browser' doesn't contain a valid alias configuration
              using description file: /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/package.json (relative path: ./lib/node/node_modules/src/.vuepress/public/images/forest.jpg)
                no extension
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
                .js
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/node_modules/src/.vuepress/public/images/forest.jpg.js doesn't exist
                .jsx
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/node_modules/src/.vuepress/public/images/forest.jpg.jsx doesn't exist
                .vue
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/node_modules/src/.vuepress/public/images/forest.jpg.vue doesn't exist
                .json
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/node_modules/src/.vuepress/public/images/forest.jpg.json doesn't exist
                .styl
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/node_modules/src/.vuepress/public/images/forest.jpg.styl doesn't exist
                as directory
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
          looking for modules in /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node_modules
            using description file: /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/package.json (relative path: ./lib/node_modules)
              Field 'browser' doesn't contain a valid alias configuration
              using description file: /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/package.json (relative path: ./lib/node_modules/src/.vuepress/public/images/forest.jpg)
                no extension
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
                .js
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node_modules/src/.vuepress/public/images/forest.jpg.js doesn't exist
                .jsx
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node_modules/src/.vuepress/public/images/forest.jpg.jsx doesn't exist
                .vue
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node_modules/src/.vuepress/public/images/forest.jpg.vue doesn't exist
                .json
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node_modules/src/.vuepress/public/images/forest.jpg.json doesn't exist
                .styl
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node_modules/src/.vuepress/public/images/forest.jpg.styl doesn't exist
                as directory
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
          looking for modules in /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/node_modules
            using description file: /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/package.json (relative path: ./node_modules)
              Field 'browser' doesn't contain a valid alias configuration
              using description file: /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/package.json (relative path: ./node_modules/src/.vuepress/public/images/forest.jpg)
                no extension
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
                .js
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/node_modules/src/.vuepress/public/images/forest.jpg.js doesn't exist
                .jsx
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/node_modules/src/.vuepress/public/images/forest.jpg.jsx doesn't exist
                .vue
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/node_modules/src/.vuepress/public/images/forest.jpg.vue doesn't exist
                .json
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/node_modules/src/.vuepress/public/images/forest.jpg.json doesn't exist
                .styl
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/node_modules/src/.vuepress/public/images/forest.jpg.styl doesn't exist
                as directory
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
          looking for modules in /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/node_modules
            using description file: /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/package.json (relative path: ./node_modules/@vuepress/node_modules)
              Field 'browser' doesn't contain a valid alias configuration
              using description file: /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/package.json (relative path: ./node_modules/@vuepress/node_modules/src/.vuepress/public/images/forest.jpg)
                no extension
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
                .js
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/node_modules/src/.vuepress/public/images/forest.jpg.js doesn't exist
                .jsx
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/node_modules/src/.vuepress/public/images/forest.jpg.jsx doesn't exist
                .vue
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/node_modules/src/.vuepress/public/images/forest.jpg.vue doesn't exist
                .json
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/node_modules/src/.vuepress/public/images/forest.jpg.json doesn't exist
                .styl
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/node_modules/src/.vuepress/public/images/forest.jpg.styl doesn't exist
                as directory
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
          looking for modules in /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules
            using description file: /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/package.json (relative path: ./node_modules)
              Field 'browser' doesn't contain a valid alias configuration
              using description file: /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/package.json (relative path: ./node_modules/src/.vuepress/public/images/forest.jpg)
                no extension
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
                .js
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/src/.vuepress/public/images/forest.jpg.js doesn't exist
                .jsx
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/src/.vuepress/public/images/forest.jpg.jsx doesn't exist
                .vue
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/src/.vuepress/public/images/forest.jpg.vue doesn't exist
                .json
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/src/.vuepress/public/images/forest.jpg.json doesn't exist
                .styl
                  Field 'browser' doesn't contain a valid alias configuration
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/src/.vuepress/public/images/forest.jpg.styl doesn't exist
                as directory
                  /home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
          looking for modules in /home/peteruithoven/Projects/Metabolic/dev/node_modules
            No description file found
            Field 'browser' doesn't contain a valid alias configuration
            No description file found
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/Projects/Metabolic/dev/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/Projects/Metabolic/dev/node_modules/src/.vuepress/public/images/forest.jpg.js doesn't exist
            .jsx
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/Projects/Metabolic/dev/node_modules/src/.vuepress/public/images/forest.jpg.jsx doesn't exist
            .vue
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/Projects/Metabolic/dev/node_modules/src/.vuepress/public/images/forest.jpg.vue doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/Projects/Metabolic/dev/node_modules/src/.vuepress/public/images/forest.jpg.json doesn't exist
            .styl
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/Projects/Metabolic/dev/node_modules/src/.vuepress/public/images/forest.jpg.styl doesn't exist
            as directory
              /home/peteruithoven/Projects/Metabolic/dev/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
          looking for modules in /home/peteruithoven/Projects/Metabolic/node_modules
            No description file found
            Field 'browser' doesn't contain a valid alias configuration
            No description file found
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/Projects/Metabolic/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/Projects/Metabolic/node_modules/src/.vuepress/public/images/forest.jpg.js doesn't exist
            .jsx
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/Projects/Metabolic/node_modules/src/.vuepress/public/images/forest.jpg.jsx doesn't exist
            .vue
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/Projects/Metabolic/node_modules/src/.vuepress/public/images/forest.jpg.vue doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/Projects/Metabolic/node_modules/src/.vuepress/public/images/forest.jpg.json doesn't exist
            .styl
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/Projects/Metabolic/node_modules/src/.vuepress/public/images/forest.jpg.styl doesn't exist
            as directory
              /home/peteruithoven/Projects/Metabolic/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
          looking for modules in /home/peteruithoven/Projects/node_modules
            No description file found
            Field 'browser' doesn't contain a valid alias configuration
            No description file found
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/Projects/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/Projects/node_modules/src/.vuepress/public/images/forest.jpg.js doesn't exist
            .jsx
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/Projects/node_modules/src/.vuepress/public/images/forest.jpg.jsx doesn't exist
            .vue
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/Projects/node_modules/src/.vuepress/public/images/forest.jpg.vue doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/Projects/node_modules/src/.vuepress/public/images/forest.jpg.json doesn't exist
            .styl
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/Projects/node_modules/src/.vuepress/public/images/forest.jpg.styl doesn't exist
            as directory
              /home/peteruithoven/Projects/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
          looking for modules in /home/peteruithoven/node_modules
            No description file found
            Field 'browser' doesn't contain a valid alias configuration
            No description file found
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/node_modules/src/.vuepress/public/images/forest.jpg.js doesn't exist
            .jsx
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/node_modules/src/.vuepress/public/images/forest.jpg.jsx doesn't exist
            .vue
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/node_modules/src/.vuepress/public/images/forest.jpg.vue doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/node_modules/src/.vuepress/public/images/forest.jpg.json doesn't exist
            .styl
              Field 'browser' doesn't contain a valid alias configuration
              /home/peteruithoven/node_modules/src/.vuepress/public/images/forest.jpg.styl doesn't exist
            as directory
              /home/peteruithoven/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
          looking for modules in /home/node_modules
            No description file found
            Field 'browser' doesn't contain a valid alias configuration
            No description file found
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /home/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              /home/node_modules/src/.vuepress/public/images/forest.jpg.js doesn't exist
            .jsx
              Field 'browser' doesn't contain a valid alias configuration
              /home/node_modules/src/.vuepress/public/images/forest.jpg.jsx doesn't exist
            .vue
              Field 'browser' doesn't contain a valid alias configuration
              /home/node_modules/src/.vuepress/public/images/forest.jpg.vue doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              /home/node_modules/src/.vuepress/public/images/forest.jpg.json doesn't exist
            .styl
              Field 'browser' doesn't contain a valid alias configuration
              /home/node_modules/src/.vuepress/public/images/forest.jpg.styl doesn't exist
            as directory
              /home/node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
          looking for modules in /node_modules
            No description file found
            Field 'browser' doesn't contain a valid alias configuration
            No description file found
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
            .js
              Field 'browser' doesn't contain a valid alias configuration
              /node_modules/src/.vuepress/public/images/forest.jpg.js doesn't exist
            .jsx
              Field 'browser' doesn't contain a valid alias configuration
              /node_modules/src/.vuepress/public/images/forest.jpg.jsx doesn't exist
            .vue
              Field 'browser' doesn't contain a valid alias configuration
              /node_modules/src/.vuepress/public/images/forest.jpg.vue doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              /node_modules/src/.vuepress/public/images/forest.jpg.json doesn't exist
            .styl
              Field 'browser' doesn't contain a valid alias configuration
              /node_modules/src/.vuepress/public/images/forest.jpg.styl doesn't exist
            as directory
              /node_modules/src/.vuepress/public/images/forest.jpg doesn't exist
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/webpack/node_modules/src/.vuepress/public/images/forest.jpg]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/webpack/node_modules/src/.vuepress/public/images/forest.jpg.js]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/webpack/node_modules/src/.vuepress/public/images/forest.jpg.jsx]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/webpack/node_modules/src/.vuepress/public/images/forest.jpg.vue]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/webpack/node_modules/src/.vuepress/public/images/forest.jpg.json]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/webpack/node_modules/src/.vuepress/public/images/forest.jpg.styl]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/node_modules/src/.vuepress/public/images/forest.jpg]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/node_modules/src/.vuepress/public/images/forest.jpg.js]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/node_modules/src/.vuepress/public/images/forest.jpg.jsx]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/node_modules/src/.vuepress/public/images/forest.jpg.vue]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/node_modules/src/.vuepress/public/images/forest.jpg.json]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node/node_modules/src/.vuepress/public/images/forest.jpg.styl]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node_modules/src/.vuepress/public/images/forest.jpg]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node_modules/src/.vuepress/public/images/forest.jpg.js]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node_modules/src/.vuepress/public/images/forest.jpg.jsx]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node_modules/src/.vuepress/public/images/forest.jpg.vue]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node_modules/src/.vuepress/public/images/forest.jpg.json]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/lib/node_modules/src/.vuepress/public/images/forest.jpg.styl]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/node_modules/src/.vuepress/public/images/forest.jpg]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/node_modules/src/.vuepress/public/images/forest.jpg.js]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/node_modules/src/.vuepress/public/images/forest.jpg.jsx]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/node_modules/src/.vuepress/public/images/forest.jpg.vue]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/node_modules/src/.vuepress/public/images/forest.jpg.json]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/core/node_modules/src/.vuepress/public/images/forest.jpg.styl]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/node_modules/src/.vuepress/public/images/forest.jpg]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/node_modules/src/.vuepress/public/images/forest.jpg.js]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/node_modules/src/.vuepress/public/images/forest.jpg.jsx]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/node_modules/src/.vuepress/public/images/forest.jpg.vue]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/node_modules/src/.vuepress/public/images/forest.jpg.json]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/@vuepress/node_modules/src/.vuepress/public/images/forest.jpg.styl]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/src/.vuepress/public/images/forest.jpg]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/src/.vuepress/public/images/forest.jpg.js]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/src/.vuepress/public/images/forest.jpg.jsx]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/src/.vuepress/public/images/forest.jpg.vue]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/src/.vuepress/public/images/forest.jpg.json]
[/home/peteruithoven/Projects/Metabolic/dev/vuepress-experiment/node_modules/src/.vuepress/public/images/forest.jpg.styl]
[/home/peteruithoven/Projects/Metabolic/dev/node_modules/package.json]
[/home/peteruithoven/Projects/Metabolic/dev/node_modules/src/.vuepress/public/images/forest.jpg/package.json]
[/home/peteruithoven/Projects/Metabolic/dev/node_modules/src/.vuepress/public/images/forest.jpg]
[/home/peteruithoven/Projects/Metabolic/dev/node_modules/src/.vuepress/public/images/forest.jpg.js]
[/home/peteruithoven/Projects/Metabolic/dev/node_modules/src/.vuepress/public/images/forest.jpg.jsx]
[/home/peteruithoven/Projects/Metabolic/dev/node_modules/src/.vuepress/public/images/forest.jpg.vue]
[/home/peteruithoven/Projects/Metabolic/dev/node_modules/src/.vuepress/public/images/forest.jpg.json]
[/home/peteruithoven/Projects/Metabolic/dev/node_modules/src/.vuepress/public/images/forest.jpg.styl]
[/home/peteruithoven/Projects/Metabolic/node_modules/package.json]
[/home/peteruithoven/Projects/Metabolic/node_modules/src/.vuepress/public/images/forest.jpg/package.json]
[/home/peteruithoven/Projects/Metabolic/node_modules/src/.vuepress/public/images/forest.jpg]
[/home/peteruithoven/Projects/Metabolic/node_modules/src/.vuepress/public/images/forest.jpg.js]
[/home/peteruithoven/Projects/Metabolic/node_modules/src/.vuepress/public/images/forest.jpg.jsx]
[/home/peteruithoven/Projects/Metabolic/node_modules/src/.vuepress/public/images/forest.jpg.vue]
[/home/peteruithoven/Projects/Metabolic/node_modules/src/.vuepress/public/images/forest.jpg.json]
[/home/peteruithoven/Projects/Metabolic/node_modules/src/.vuepress/public/images/forest.jpg.styl]
[/home/peteruithoven/Projects/node_modules/package.json]
[/home/peteruithoven/Projects/node_modules/src/.vuepress/public/images/forest.jpg/package.json]
[/home/peteruithoven/Projects/node_modules/src/.vuepress/public/images/forest.jpg]
[/home/peteruithoven/Projects/node_modules/src/.vuepress/public/images/forest.jpg.js]
[/home/peteruithoven/Projects/node_modules/src/.vuepress/public/images/forest.jpg.jsx]
[/home/peteruithoven/Projects/node_modules/src/.vuepress/public/images/forest.jpg.vue]
[/home/peteruithoven/Projects/node_modules/src/.vuepress/public/images/forest.jpg.json]
[/home/peteruithoven/Projects/node_modules/src/.vuepress/public/images/forest.jpg.styl]
[/home/peteruithoven/node_modules/package.json]
[/home/peteruithoven/node_modules/src/.vuepress/public/images/forest.jpg/package.json]
[/home/peteruithoven/node_modules/src/.vuepress/public/images/forest.jpg]
[/home/peteruithoven/node_modules/src/.vuepress/public/images/forest.jpg.js]
[/home/peteruithoven/node_modules/src/.vuepress/public/images/forest.jpg.jsx]
[/home/peteruithoven/node_modules/src/.vuepress/public/images/forest.jpg.vue]
[/home/peteruithoven/node_modules/src/.vuepress/public/images/forest.jpg.json]
[/home/peteruithoven/node_modules/src/.vuepress/public/images/forest.jpg.styl]
[/home/node_modules/package.json]
[/home/node_modules/src/.vuepress/public/images/forest.jpg/package.json]
[/home/node_modules/src/.vuepress/public/images/forest.jpg]
[/home/node_modules/src/.vuepress/public/images/forest.jpg.js]
[/home/node_modules/src/.vuepress/public/images/forest.jpg.jsx]
[/home/node_modules/src/.vuepress/public/images/forest.jpg.vue]
[/home/node_modules/src/.vuepress/public/images/forest.jpg.json]
[/home/node_modules/src/.vuepress/public/images/forest.jpg.styl]
[/node_modules/package.json]
[/node_modules/src/.vuepress/public/images/forest.jpg/package.json]
[/node_modules/src/.vuepress/public/images/forest.jpg]
[/node_modules/src/.vuepress/public/images/forest.jpg.js]
[/node_modules/src/.vuepress/public/images/forest.jpg.jsx]
[/node_modules/src/.vuepress/public/images/forest.jpg.vue]
[/node_modules/src/.vuepress/public/images/forest.jpg.json]
[/node_modules/src/.vuepress/public/images/forest.jpg.styl]

I used the following config to add the public alias.

title: Experiment
description: An interactive webbased report experiment
dest: public/experiments/vuepress/
base: /experiments/vuepress/
configureWebpack:
  resolve:
    alias:
      "@base": src/.vuepress

Docs:

How should this be implemented in your opinion?

By including a default webpack alias?

Are you willing to work on this yourself?

Yes, but I'd need some tips.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions