netlify-cli 17.35.0 → 17.36.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/dist/commands/dev/dev.d.ts.map +1 -1
- package/dist/commands/dev/dev.js +5 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/npm-shrinkwrap.json +541 -380
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../src/commands/dev/dev.ts"],"names":[],"mappings":"AAGA,OAAO,EAAU,YAAY,EAAE,MAAM,WAAW,CAAA;AA0BhD,OAAO,WAAW,MAAM,oBAAoB,CAAA;AA4D5C,eAAO,MAAM,GAAG,YAAmB,YAAY,WAAW,WAAW,
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../src/commands/dev/dev.ts"],"names":[],"mappings":"AAGA,OAAO,EAAU,YAAY,EAAE,MAAM,WAAW,CAAA;AA0BhD,OAAO,WAAW,MAAM,oBAAoB,CAAA;AA4D5C,eAAO,MAAM,GAAG,YAAmB,YAAY,WAAW,WAAW,kBAiKpE,CAAA;AAED,eAAO,MAAM,gBAAgB,YAAa,WAAW,gBAiHpD,CAAA"}
|
package/dist/commands/dev/dev.js
CHANGED
|
@@ -105,11 +105,13 @@ export const dev = async (options, command) => {
|
|
|
105
105
|
let settings;
|
|
106
106
|
try {
|
|
107
107
|
settings = await detectServerSettings(devConfig, options, command);
|
|
108
|
-
|
|
108
|
+
const { NETLIFY_INCLUDE_DEV_SERVER_PLUGIN } = process.env;
|
|
109
|
+
if (NETLIFY_INCLUDE_DEV_SERVER_PLUGIN) {
|
|
110
|
+
const plugins = NETLIFY_INCLUDE_DEV_SERVER_PLUGIN.split(',');
|
|
109
111
|
if (options.debug) {
|
|
110
|
-
log(`${NETLIFYDEVLOG} Including dev server
|
|
112
|
+
log(`${NETLIFYDEVLOG} Including dev server plugins: ${NETLIFY_INCLUDE_DEV_SERVER_PLUGIN}`);
|
|
111
113
|
}
|
|
112
|
-
settings.plugins = [...(settings.plugins || []),
|
|
114
|
+
settings.plugins = [...(settings.plugins || []), ...plugins];
|
|
113
115
|
}
|
|
114
116
|
cachedConfig.config = getConfigWithPlugins(cachedConfig.config, settings);
|
|
115
117
|
}
|