Narwhals Prolong Mischief

    @ovh-ux/manager-webpack-dev-server

    3.0.1 • Public • Published

    Manager Webpack Dev Server

    OVH manager webpack development server configuration.

    Downloads Dependencies Dev Dependencies

    Install

    yarn add -D @ovh-ux/manager-webpack-dev-server

    Usage

    This configuration is meant to be merged with your webpack configuration using the webpack-merge library.

    const merge = require('webpack-merge');
    const devServer = require('manager-webpack-dev-server');
    
    const devConfig = devServer.config(env);
    
    module.exports = merge(yourWebpackConfig, devConfig);

    Env

    The env parameter is an object containing the following values:

    const env = {
      dev: [
        // custom configuration to proxy some routes
        {
          context, // Routes to rewrite
          nic,
          target, // API path to target
        },
      ],
      host: '0.0.0.0', // If you want your server to be accessible externally
      https: false, // true to enable https
      local2API: false, // true to make 2API calls on local 8080 port
      port: 9000, // Specify a port number to listen for requests.
      region: 'EU', // manager region (EU, CA, US)
    };

    Related

    Contributing

    Always feel free to help out! Whether it's filing bugs and feature requests or working on some of the open issues, our contributing guide will help get you started.

    License

    BSD-3-Clause © OVH SAS

    Install

    npm i @ovh-ux/manager-webpack-dev-server

    DownloadsWeekly Downloads

    106

    Version

    3.0.1

    License

    BSD-3-Clause

    Unpacked Size

    14.5 kB

    Total Files

    8

    Last publish

    Collaborators

    • jisay
    • blary_jp
    • antleblanc
    • cbourgois
    • ovh-ux-cds
    • lizardk
    • ovh
    • marie-j