Skip to content

How to add alias and externals in encoreΒ #200

@tristanbes

Description

@tristanbes

Hello,

Since webpack is obscure to me, I'm giving encore a chance but i'm strugling with how to add an alias and externals entries

    resolve: {
      extensions: ['.js', '.json', '.vue'],
      alias: {
        Translator: 'node_modules/bazinga-translator/js',
      },
    },
    externals: {
      vue: 'Vue',
      vuex: 'Vuex',
      google: 'google',
      leaflet: 'L',
      markerclustererplus: 'MarkerClusterer',
      routing: 'Routing',
      app: 'app',
      translator: 'Translator',
    },

I tried ctrl+f in encore API but didn't found it :(

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