How to use webpack-livereload-plugin - 4 common examples

To help you get started, we’ve selected a few webpack-livereload-plugin 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 nfour / js-structures / layouts / react-redux-modular / build / Build.js View on Github external
}),
        ]
      );
    }

    // Ensures NODE_ENV
    o.webpack.plugins.push(
      new webpack.DefinePlugin({
        'process.env': {
          NODE_ENV: JSON.stringify(process.env.NODE_ENV),
        },
      })
    );

    if (o.liveReload) {
      o.webpack.plugins.push(new LiveReload(o.liveReload || null));
    }

    const sourceName = path.basename(o.source)
      .replace(path.extname(o.source), '.js');

    const config = {
      ...o.webpack,

      watch: o.watch,

      entry: [
        ...this.config.webpack.entry,
        o.source,
      ],

      devtool: o.compress
github nfour / js-structures / layouts / react-redux-modular-airbnb / build / Build.js View on Github external
new webpack.optimize.DedupePlugin(),
          new webpack.optimize.UglifyJsPlugin({
            compress: {
              unused        : true,
              dead_code     : true,
              warnings      : false,
              drop_debugger : true,
              screw_ie8     : true,
            },
          }),
        ]
      );
    }

    if (o.liveReload) {
      o.webpack.plugins.push(new LiveReload(o.liveReload || null));
    }

    const sourceName = path.basename(o.source)
      .replace(path.extname(o.source), '.js');

    const config = {
      ...o.webpack,

      watch: o.watch,

      entry: [
        ...this.config.webpack.entry,
        o.source,
      ],

      devtool: o.compress
github nfour / js-structures / layouts / react-redux / build / Build.js View on Github external
...[
                    new webpack.optimize.DedupePlugin(),
                    new webpack.optimize.UglifyJsPlugin({
                        compress: {
                            unused        : true,
                            dead_code     : true,
                            warnings      : false,
                            drop_debugger : true,
                            screw_ie8     : true,
                        }
                    }),
                ]
            )

        if ( o.liveReload )
            o.webpack.plugins.push( new LiveReload(o.liveReload || null) )

        const config = {
            ...o.webpack,

            watch: o.watch,

            entry: [
                ...this.config.webpack.entry,
                o.source
            ],

            devtool: o.compress
                ? false
                : o.webpack.devtool,

            module: {
github nfour / js-structures / layouts / react-redux / build / Tasks.js View on Github external
unused        : true,
                            dead_code     : true,
                            warnings      : false,
                            drop_debugger : true,
                            screw_ie8     : true,
                        }
                    }),
                ]
            )

        if ( options.liveReload ) {
            let liveOptions = typeOf.Object(options.liveReload)
                ? options.liveReload
                : null

            plugins.push(new LiveReload(liveOptions))
        }

        const eslint = options.webpack.eslint
            ? options.webpack.eslint
            : this.config.webpack.eslint

        let config = {
            watch   : options.watch,
            entry   : [ 'babel-polyfill', options.source ],
            devtool : options.compress
                ? false
                : options.webpack.devtool || 'source-map',
            module  : {
                preLoaders: this.config.webpack.preLoaders,
                loaders
            },

webpack-livereload-plugin

Livereload for webpack

ISC
Latest version published 1 year ago

Package Health Score

57 / 100
Full package analysis

Popular webpack-livereload-plugin functions

Popular JavaScript code snippets

Find secure code to use in your application or website