mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix lint error
This commit is contained in:
parent
b5e2b585fe
commit
a2e24e6710
@ -4,7 +4,7 @@ const glob = require('glob-all')
|
|||||||
|
|
||||||
class TailwindExtractor {
|
class TailwindExtractor {
|
||||||
static extract(content) {
|
static extract(content) {
|
||||||
return content.match(/[A-z0-9-:\/]+/g) || [];
|
return content.match(/[A-z0-9-:/]+/g) || []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ module.exports = {
|
|||||||
require('tailwindcss')('./tailwind.js'),
|
require('tailwindcss')('./tailwind.js'),
|
||||||
require('autoprefixer')
|
require('autoprefixer')
|
||||||
],
|
],
|
||||||
extend (config, { isDev }) {
|
extend(config, { isDev }) {
|
||||||
if (!isDev) {
|
if (!isDev) {
|
||||||
config.plugins.push(
|
config.plugins.push(
|
||||||
new PurgecssPlugin({
|
new PurgecssPlugin({
|
||||||
@ -28,7 +28,7 @@ module.exports = {
|
|||||||
extractors: [
|
extractors: [
|
||||||
{
|
{
|
||||||
extractor: TailwindExtractor,
|
extractor: TailwindExtractor,
|
||||||
extensions: ["vue"]
|
extensions: ['vue']
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
whitelist: ['html', 'body']
|
whitelist: ['html', 'body']
|
||||||
|
Loading…
Reference in New Issue
Block a user