mirror of
https://github.com/scratchfoundation/scratch-webpack-configuration.git
synced 2025-03-21 18:30:12 -04:00
refactor: [UEPR-17] Fixed an outdated description
This commit is contained in:
parent
87137af662
commit
857b6f804b
1 changed files with 2 additions and 2 deletions
|
@ -33,9 +33,9 @@ class ScratchWebpackConfigBuilder {
|
|||
* @param {boolean} [options.enableReact] Whether to enable React and JSX support.
|
||||
* @param {string} [options.libraryName] The name of the library to build. Shorthand for `output.library.name`.
|
||||
* @param {string|URL} [options.srcPath] The absolute path to the source files. Defaults to `src` under `rootPath`.
|
||||
* @param {boolean} [options.shouldSplitChunks] Whether to enable optimization.
|
||||
* @param {boolean} [options.shouldSplitChunks] Whether to enable spliting code to chunks.
|
||||
*/
|
||||
constructor({ distPath, enableReact, libraryName, rootPath, srcPath, shouldSplitChunks}) {
|
||||
constructor ({ distPath, enableReact, libraryName, rootPath, srcPath, shouldSplitChunks}) {
|
||||
const isProduction = process.env.NODE_ENV === 'production';
|
||||
const mode = isProduction ? 'production' : 'development';
|
||||
|
||||
|
|
Loading…
Reference in a new issue