module.exports = api => { api.chainWebpack(webpackConfig => { // Remove any existing rule added from a previous version of the plugin (npm uninstall/ yarn remove will remove the plugin, but leave behind the webpack rules) webpackConfig.module.rules.delete('pug') // Rules taken from: https://vue-loader.vuejs.org/guide/pre-processors.html#pug webpackConfig.module .rule('pug') .test(/\.pug$/) // this applies to