UNPKG

cloudboost-tv

Version:

Database Service that does Storage, Search, Real-time and a whole lot more.

78 lines (75 loc) 1.83 kB
var webpack = require('webpack') var config = [{ entry: './src/entry.js', output: { path: './dist', filename: 'cloudboost.js', library: "cloudboost", libraryTarget: 'umd', umdNamedDefine: true, }, externals: { IO: "socket.io-client", Axios: "axios" }, module: { loaders: [ { test: /\.json$/, loader: 'json' }, { test: /\.js?$/, exclude: /node_modules/, loader: 'babel', query: { presets: ["es2015-without-strict"], compact: false } } ] }, plugins: [] }, { entry: './src/entry.js', output: { path: './dist', filename: 'cloudboost.min.js', library: "cloudboost", libraryTarget: 'umd', umdNamedDefine: true, }, externals: { IO: "socket.io-client", Axios: "axios" }, module: { loaders: [ { test: /\.json$/, loader: 'json' }, { test: /\.js?$/, exclude: /node_modules/, loader: 'babel', query: { presets: ["es2015-without-strict"], compact: false } } ] }, plugins: [ new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false, }, mangle: false, output: { comments: false, }, }), new webpack.optimize.DedupePlugin(), new webpack.DefinePlugin({ 'process.env': { 'NODE_ENV': JSON.stringify('production') } }) ] }] module.exports = config;