We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1046e9 commit 44c7765Copy full SHA for 44c7765
src/index.cjs
@@ -161,6 +161,23 @@ class ScratchWebpackConfigBuilder {
161
return this;
162
}
163
164
+ /**
165
+ * Enable the webpack dev server. Probably only useful for web targets.
166
+ * @param {string|number} [port='auto'] The port to listen on, or `'auto'` to use a random port.
167
+ * @returns {this}
168
+ */
169
+ enableDevServer (port = 'auto') {
170
+ return this.merge({
171
+ devServer: {
172
+ client: {
173
+ overlay: true,
174
+ progress: true
175
+ },
176
+ port
177
+ }
178
+ });
179
180
+
181
/**
182
* Add a new rule to `module.rules` in the current configuration object.
183
* @param {RuleSetRule} rule The rule to add.
0 commit comments