@videinfra/static-website-builder 2.0.0-beta.4 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/get-config.js CHANGED
@@ -159,7 +159,7 @@ function itterateConfig(config, fn) {
159
159
  function mergeConfigMode(config) {
160
160
  if ('production' in config || 'development' in config) {
161
161
  const mode = global.production ? 'production' : 'development';
162
- const value = merge(config, config[mode]);
162
+ const value = typeof config[mode] === 'undefined' ? config : merge(config, config[mode]);
163
163
 
164
164
  if (value !== false) {
165
165
  return omit(value, ['production', 'development']);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@videinfra/static-website-builder",
3
- "version": "2.0.0-beta.4",
3
+ "version": "2.0.1",
4
4
  "description": "Customizable static site project builder",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -119,10 +119,7 @@ class GulpRolldown extends Transform {
119
119
 
120
120
  // Set input files
121
121
  inputOptions.input = Object.keys(entryContent);
122
- inputOptions.plugins = [
123
- rawPlugin(),
124
- virtualEntryPlugin(entryContent),
125
- ].concat(inputOptions.plugins || []);
122
+ inputOptions.plugins = [rawPlugin(), virtualEntryPlugin(entryContent)].concat(inputOptions.plugins || []);
126
123
 
127
124
  // Set full paths when running watch or build
128
125
  inputOptions.output = outputOptions;
package/.eslintignore DELETED
@@ -1,2 +0,0 @@
1
- src/javascripts/_entries.json
2
- src/static/sw.js