mirror of
https://github.com/peter-tanner/peter-tanner.github.io.git
synced 2024-11-30 20:10:18 +08:00
24 lines
617 B
JavaScript
24 lines
617 B
JavaScript
|
const fs = require('fs');
|
||
|
const DIST_PATH = '_sass/dist';
|
||
|
|
||
|
fs.rm(DIST_PATH, { recursive: true, force: true }, (err) => {
|
||
|
if (err) {
|
||
|
throw err;
|
||
|
}
|
||
|
|
||
|
fs.mkdirSync(DIST_PATH);
|
||
|
});
|
||
|
|
||
|
module.exports = {
|
||
|
content: ['_includes/**/*.html', '_layouts/**/*.html', '_javascript/**/*.js'],
|
||
|
css: ['node_modules/bootstrap/dist/css/bootstrap.min.css'],
|
||
|
keyframes: true,
|
||
|
variables: true,
|
||
|
output: `${DIST_PATH}/bootstrap.css`,
|
||
|
// The `safelist` should be changed appropriately for future development
|
||
|
safelist: {
|
||
|
standard: [/^collaps/, /^w-/, 'shadow', 'border', 'kbd'],
|
||
|
greedy: [/^col-/, /tooltip/]
|
||
|
}
|
||
|
};
|