Sha256: d76a9297d5c2cbb953917c7431b508602652c3b77ee01da2f2c07c85bb262f02
Contents?: true
Size: 1.1 KB
Versions: 35
Compression:
Stored size: 1.1 KB
Contents
'use strict'; const webpack = require('webpack'); function criWrapper(_, options, callback) { window.criRequest(options, callback); } const webpackConfig = { resolve: { alias: { 'ws': './websocket-wrapper.js' } }, externals: [ { './external-request.js': `var (${criWrapper})` } ], module: { loaders: [ { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' }, { test: /\.json$/, loader: 'json' } ] }, plugins: [ ], entry: './index.js', output: { libraryTarget: process.env.TARGET || 'commonjs2', library: 'CDP', filename: 'chrome-remote-interface.js' } }; if (process.env.DEBUG !== 'true') { webpackConfig.plugins.push(new webpack.optimize.UglifyJsPlugin({ mangle: true, compress: { warnings: false }, output: { comments: false } })); } module.exports = webpackConfig;
Version data entries
35 entries across 35 versions & 2 rubygems