* @see https://webpack.github.io/docs/configuration.html#output
(output)
| 171 | * @see https://webpack.github.io/docs/configuration.html#output |
| 172 | */ |
| 173 | function 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…