Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Module is not enabled" when running Nuxt generate #81

Closed
simplenotezy opened this issue Apr 2, 2020 · 3 comments
Closed

"Module is not enabled" when running Nuxt generate #81

simplenotezy opened this issue Apr 2, 2020 · 3 comments

Comments

@simplenotezy
Copy link

When running nuxt generate I see this warning:

 WARN  Module is not enabled                                                 nuxt-purgecss 14:29:17

Version: ^0.2.1

This is my nuxt.config file:

purgeCSS: {
	// mode: 'postcss',
	enabled: ({ isDev, isClient }) => (!isDev && isClient), // or `false` when in dev/debug mode
	paths: [
		'components/**/*.vue',
		'layouts/**/*.vue',
		'pages/**/*.vue',
		'plugins/**/*.js'
	],
	styleExtensions: ['.css'],
	whitelist: ['body', 'html', 'nuxt-progress'],
	extractors: [
		{
			extractor(content) {
				return content.match(/[A-z0-9-:\\/]+/g)
			},
			extensions: ['html', 'vue', 'js']
		}
	]
},
@manniL
Copy link
Member

manniL commented Apr 2, 2020

  1. Please provide a reproduction (repo/codesandbox)
  2. I highly recommend not copy-pasting the default config values. Instead, only alter the values you really want to change. That makes debugging easier.

@simplenotezy
Copy link
Author

Well, seems like if I remove the default configuration as you said, it doesn't show this error. Initially when setting it up, it seemed like I needed to add it.

I'll keep you posted if I see more errors.

@manniL
Copy link
Member

manniL commented Apr 26, 2020

Stale

@manniL manniL closed this as completed Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants