How to use the webpack-nano/argv.serve function in webpack-nano

To help you get started, we’ve selected a few webpack-nano examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github arso-project / sonar / sonar-ui / webpack.config.js View on Github external
]
  },
  output: {
    path: output,
    publicPath: '/',
    filename: 'bundle.js'
  },
  plugins: [
    new HtmlWebpackPlugin({
      title: 'Sonar'
      // template: './index.html'
    })
  ]
}

if (argv.serve) {
  config.plugins.push(
    new WebpackPluginServe({
      host: 'localhost',
      static: output,
      open: false,
      liveReload: true,
      historyFallback: true,
      // progress: 'minimal',
      progress: false,
      ramdisk: ramdisk
    })
  )
  config.entry.push(
    'webpack-plugin-serve/client'
  )
}

webpack-nano

A teensy, squeaky 🐤 clean Webpack CLI

MPL-2.0
Latest version published 3 years ago

Package Health Score

53 / 100
Full package analysis