How to use electrode-archetype-react-app-dev - 1 common examples

To help you get started, we’ve selected a few electrode-archetype-react-app-dev 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 electrode-io / electrode / samples / hapi-app / webpack.config.js View on Github external
// Custom Webpack Config that takes control and overrides Archetype
const { compose, env, options } = require("electrode-archetype-react-app-dev/config/webpack");
const WebpackHookPlugin = require("webpack-hook-plugin");

// An example to add a plugin
const wConfig = compose(options);

if (env === "development") {
  const webpackHook = new WebpackHookPlugin({
    onBuildStart: ['echo "Webpack Build starts"'],
    onBuildEnd: ['echo "Webpack Build ends"']
  });

  wConfig.plugins.push(webpackHook);
}

module.exports = wConfig;

electrode-archetype-react-app-dev

Electrode NodeJS/React Application Archetype (Development)

Apache-2.0
Latest version published 4 years ago

Package Health Score

64 / 100
Full package analysis

Popular electrode-archetype-react-app-dev functions

Similar packages