Skip to content

Commit

Permalink
fix: doesn't work on SPA mode (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
munierujp authored and ricardogobbosouza committed Sep 7, 2019
1 parent 30dfacb commit 052d1e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ module.exports = function (moduleOptions) {
...filesToWatch.map(file => resolve(this.options.rootDir, file))
)

this.extendBuild((config, { isDev }) => {
if (isDev) {
this.extendBuild((config, { isDev, isClient }) => {
if (isDev && isClient) {
config.plugins.push(new StyleLintPlugin(options))
}
})
Expand Down

0 comments on commit 052d1e8

Please sign in to comment.