How to use webpack-s3-plugin - 1 common examples

To help you get started, we’ve selected a few webpack-s3-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 Syncano / syncano-dashboard / webpack.config.babel.js View on Github external
name: 'manifest',
          filename: 'manifest.js',
          minChunks: Infinity,
        }),
        new ContextReplacementPlugin(/brace[\\\/]mode$/, /^\.\/(javascript|html|python|ruby|golang|swift|php|django|json|css|text)$/),
        new ContextReplacementPlugin(/brace[\\\/]theme$/, /^\.\/(tomorrow)$/),
        new ContextReplacementPlugin(/moment[\\\/]locale$/, /^\.\/(en-uk|en-us|en-au)$/),
        new CompressionPlugin({
          asset: "[path].gz[query]",
          algorithm: "gzip",
          test: /\.js$|\.css$/,
          threshold: 10240,
          minRatio: 0.8
        })
      ]),
      env.deploy && new S3Plugin(getS3Config(env))
    ]),
    resolve: {
      extensions: ['.js', '.jsx']
    },
    externals: {
      'analyticsjs': 'window.analytics',
      'stripejs': 'Stripe'
    },
    stats: 'errors-only',
    devServer: {
      stats: 'errors-only'
    }
  };

  if (env.debug) {
    console.log(config);

webpack-s3-plugin

Uploads compiled assets to s3 after build

MIT
Latest version published 4 years ago

Package Health Score

51 / 100
Full package analysis

Popular webpack-s3-plugin functions