partials: {
    babel: any;
    baseOptions: any;
    dev: any;
    devMode: any;
    dll: any;
    dllEntry: any;
    dllLoad: any;
    dllOutput: any;
    dllReference: any;
    entry: any;
    extractStyle: any;
    fail: any;
    fonts: any;
    images: any;
    isomorphic: any;
    karmaBase: any;
    karmaEntry: any;
    karmaOutput: any;
    karmaResolve: any;
    locales: any;
    minify: any;
    node: any;
    output: any;
    prodMode: any;
    progressSimple: any;
    pwa: any;
    resolve: any;
    resolveLoader: any;
    sourceMapsInline: any;
    sourceMapsRemote: any;
    statsWriter: any;
    subapp2: any;
    subappChunks: any;
}

The webpack config partials xarc uses to compose the final webpack config for building your application.

If you want to customize the webpack config, you can create your own webpack.config.ts and use these partials to compose your own final webpack config.

Type declaration

  • babel: any

    setup to use babel and babel-loader to transpile code

  • baseOptions: any

    Some base webpack configuration

  • dev: any

    setup development tools and server

  • devMode: any

    set webpack to development mode

  • dll: any
  • dllEntry: any
  • dllLoad: any
  • dllOutput: any
  • dllReference: any
  • entry: any

    configuration to setup the app's entry code

  • extractStyle: any

    setup CSS/styling support

  • fail: any

    setup a plugin that properly terminates webpack on failures

  • fonts: any

    setup loaders for font files like woff/woff2/eot/ttf

  • images: any

    setup loaders for handling images like jpeg/png/gif/svg

  • isomorphic: any

    setup loading non-js assets when running in SSR mode

  • karmaBase: any

    base setup for running Karma tests

  • karmaEntry: any

    setup for karma test entry

  • karmaOutput: any

    setup for karma test output

  • karmaResolve: any

    setup for karma test module resolve

  • locales: any

    setup for locale support

  • minify: any

    setup for optimizing code for production

    With webpack 4 this is not really needed given that webpack4 automatically handles minification with the mode option.

  • node: any

    setup whether to auto bundle source to simulate node.js APIs

  • output: any

    setup the bundle code output

  • prodMode: any

    set webpack to production mode

  • progressSimple: any

    setup a plugin to do simple text base compile progress reporting

  • pwa: any

    setup for PWA functionalities

  • resolve: any

    setup module resolution

  • resolveLoader: any

    setup resolveLoader option

  • sourceMapsInline: any

    setup source maps to be inline

  • sourceMapsRemote: any

    setup source maps to be remote

  • statsWriter: any

    setup a plugin to capture stats and save as stats.json

  • subapp2: any

    setup subapp version 2 plugins and config

  • subappChunks: any

    setup for processing subapp chunks