Skip to content
Discussion options

You must be logged in to vote

Script externals are for classic script. For modules you can use import():

// webpack.config.js​module.exports​ ​=​ ​{​
    ...
    ​externalsType​: ​'import',​
    ​externals​: ​{​
      ​'@google/model-viewer'​:
        ​'https://unpkg.com/@google/[email protected]/dist/model-viewer.min.js',​
    ​}​
​}

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@felipe-chamas
Comment options

@felipe-chamas
Comment options

@sokra
Comment options

@sokra
Comment options

@felipe-chamas
Comment options

Answer selected by felipe-chamas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants