Skip to content

Instantly share code, notes, and snippets.

@sanjmen
Forked from wlee221/vue.config.js
Created February 9, 2021 14:10
Show Gist options
  • Save sanjmen/7676d3e72b18f52c9e8bbbc0fc7efa13 to your computer and use it in GitHub Desktop.
Save sanjmen/7676d3e72b18f52c9e8bbbc0fc7efa13 to your computer and use it in GitHub Desktop.
Vue 3: `vue.config.js` configuration for Amplify UI Components
module.exports = {
chainWebpack: config => {
config.module
.rule('vue')
.use('vue-loader')
.tap(options => {
options.compilerOptions = {
...(options.compilerOptions || {}),
isCustomElement: tag => tag.startsWith('amplify-')
};
return options;
});
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment