UNPKG

qics

Version:

A Javascript Idealistic Quantum Computer Simulation Library

33 lines (29 loc) 629 B
var webpack = require('webpack'); var config = { module: { loaders: [ { test: /\.js$/, loaders: ['babel-loader'], exclude: /node_modules/ } ] }, output: { library: 'qics', libraryTarget: 'var' }, plugins: [ new webpack.optimize.OccurenceOrderPlugin(), new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV) }) ] }; if (process.env.NODE_ENV === 'production') { config.plugins.push( new webpack.optimize.UglifyJsPlugin({ compressor: { screw_ie8: true, warnings: false } }) ); } module.exports = config;