Skip to content

Instantly share code, notes, and snippets.

@JamieCurnow
Created October 21, 2018 03:27
Show Gist options
  • Save JamieCurnow/1cface26705689e4793d7a06c1898ea2 to your computer and use it in GitHub Desktop.
Save JamieCurnow/1cface26705689e4793d7a06c1898ea2 to your computer and use it in GitHub Desktop.
build: {
extractCSS: false,
extend (config, {isDev}) {
if (isDev && process.client) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment