fix: copy static CSS files (pico.min.css, zenburn.css) to build
The .ignore(['css']) pattern was preventing all CSS files in src/css/ from being copied to the build directory. Only SCSS source files should be ignored - pre-compiled CSS dependencies like pico.min.css and zenburn.css need to be served by the static file server.
This commit is contained in:
1 parent
7a5c031b1d
commit
b547cd3137
1 file changed
+1
-1
@@ -300,7 +300,7 @@ function handlebarsPreprocessor() {
|
||||
compileSass(__dirname, path.join(__dirname, "build"));
|
||||
|
||||
const ms = Metalsmith(__dirname)
|
||||
.ignore(['css']) // Don't copy CSS source files to build
|
||||
.ignore(['**/*.scss']) // Don't copy SCSS source files to build
|
||||
.clean(false) // Don't clean build directory (pre-build SCSS compilation outputs preserved)
|
||||
.source("src")
|
||||
.use(
|
||||
|
||||
Reference in new issue
Block a user