forked from sveltejs/template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
18 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,4 +68,4 @@ | |
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.0.2", | ||
"uuid": "^8.3.1" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,18 @@ | ||
const purgecss = require("@fullhuman/postcss-purgecss")({ | ||
// const purgecss = require("@fullhuman/postcss-purgecss")({ | ||
// Specify the paths to all of the template files in your project | ||
content: ['./public/index.html', | ||
'./src/**/*.svelte', | ||
'./src/**/*.js'], | ||
css: ["./src/css/*.css"], | ||
// content: ['./public/index.html', | ||
// './src/**/*.svelte', | ||
// './src/**/*.js'], | ||
// css: ["./src/css/*.css"], | ||
// Include any special characters you're using in this regular expression | ||
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [] | ||
}); | ||
// defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [] | ||
// }); | ||
|
||
|
||
/*module.exports = { | ||
plugins: [ | ||
require('postcss-import'), | ||
require('tailwindcss'), | ||
require('autoprefixer'), | ||
...(process.env.NODE_ENV === "production" | ||
? [purgecss, require("cssnano")] | ||
: []) | ||
] | ||
} */ | ||
module.exports = { | ||
plugins: { | ||
'postcss-import': {}, | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
'postcss-import': {}, | ||
'tailwindcss': {}, | ||
'autoprefixer': {}, | ||
} | ||
} | ||
|
||
/*module.exports = { | ||
plugins: [ | ||
require("postcss-import"), | ||
require("tailwindcss"), | ||
require("autoprefixer"), | ||
...(process.env.NODE_ENV === "production" | ||
? [purgecss, require("cssnano")] | ||
: []) | ||
] | ||
};*/ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters