Skip to content

Commit 7c9d726

Browse files
authored
fix(docs): don't include less source files in served site (#9052)
* fix(docs): don't include less source files in served site For example: http://pouchdb.com/static/less/pouchdb/alerts.less
1 parent 4711759 commit 7c9d726

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2
-2
lines changed

bin/build-site.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var cssmin = require('cssmin');
1414
const terser = require('terser');
1515

1616
const POUCHDB_CSS = resolvePath('docs/static/css/pouchdb.css');
17-
const POUCHDB_LESS = resolvePath('docs/static/less/pouchdb/pouchdb.less');
17+
const POUCHDB_LESS = resolvePath('docs/src/less/pouchdb/pouchdb.less');
1818

1919
process.chdir('docs');
2020

@@ -103,7 +103,7 @@ if (!process.env.BUILD) {
103103
const watchGlob = require('glob-watcher');
104104

105105
watchGlob('**', buildJekyll);
106-
watchGlob('static/less/*/*.less', buildCSS);
106+
watchGlob('static/src/*/*.less', buildCSS);
107107
http_server.createServer({root: '_site', cache: '-1'}).listen(4000);
108108
console.log('Server address: http://localhost:4000');
109109
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)