stubbed copy dialog
This commit is contained in:
parent
d881755814
commit
7ad63ae004
6 changed files with 1946 additions and 8 deletions
|
@ -7,6 +7,14 @@ class TailwindExtractor {
|
|||
const options = {
|
||||
plugins: [
|
||||
require('tailwindcss')('./tailwind.js'),
|
||||
require('postcss-preset-env')
|
||||
]
|
||||
};
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
options.map = { inline: true };
|
||||
} else {
|
||||
options.plugins.push(
|
||||
require('@fullhuman/postcss-purgecss')({
|
||||
content: ['./app/*.js', './app/ui/*.js'],
|
||||
extractors: [
|
||||
|
@ -15,15 +23,13 @@ const options = {
|
|||
extensions: ['js']
|
||||
}
|
||||
]
|
||||
}),
|
||||
})
|
||||
);
|
||||
options.plugins.push(
|
||||
require('cssnano')({
|
||||
preset: 'default'
|
||||
})
|
||||
]
|
||||
};
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
options.map = { inline: true };
|
||||
);
|
||||
}
|
||||
|
||||
module.exports = options;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue