diff --git a/package.json b/package.json index 2a26d00a1..910472f0b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hashbrown-cms", "repository": "https://github.com/HashBrownCMS/hashbrown-cms.git", - "version": "1.3.5", + "version": "1.3.6", "description": "A free and open-source headless CMS", "main": "hashbrown.js", "scripts": { diff --git a/webpack.config.js b/webpack.config.js index 0d1837e02..32670abe8 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -10,6 +10,9 @@ const FileSystem = require('fs'); const IS_WATCHING = Array.isArray(process.argv) && process.argv.indexOf('--watch') > -1; const TMP_PATH = Path.join(__dirname, 'tmp'); const PLUGINS_PATH = Path.join(__dirname, 'plugins'); +const PUBLIC_PATH = Path.join(__dirname, 'public'); +const PUBLIC_JS_PATH = Path.join(PUBLIC_PATH, 'js'); +const PUBLIC_CSS_PATH = Path.join(PUBLIC_PATH, 'css'); /** * Gets all .js entries @@ -28,6 +31,8 @@ function getJsEntries() { } // Include plugins + FileSystem.writeFileSync(Path.join(PUBLIC_JS_PATH, 'plugins.js'), '/* No plugins installed */'); + let pluginScripts = []; if(FileSystem.existsSync(PLUGINS_PATH)) {