MCPcopy Index your code
hub / github.com/andywer/webpack-blocks / setOutput

Function setOutput

packages/webpack/index.js:173–182  ·  view source on GitHub ↗

* @see https://webpack.github.io/docs/configuration.html#output

(output)

Source from the content-addressed store, hash-verified

171 * @see https://webpack.github.io/docs/configuration.html#output
172 */
173function setOutput(output) {
174 if (typeof output === 'string') {
175 output = {
176 filename: path.basename(output) || 'bundle.js',
177 path: path.resolve(path.dirname(output) || './build')
178 }
179 }
180
181 return (context, util) => util.merge({ output })
182}
183
184/**
185 * Just a convenience wrapper to enable sourcemaps in an easier-to-read fashion

Callers 8

webpack.config.jsFile · 0.85
webpack.config.jsFile · 0.85
webpack.config.jsFile · 0.85
webpack.config.jsFile · 0.85
webpack.config.jsFile · 0.85
webpack.config.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…