Arquivos
Vsevolod Rodionov 34c93cb718 Bringing synaptic.min.js and webpack.config that is outputting 100% identical .js and .min.js files - just a dirty fix for CDNJS
that is related to https://github.com/cazala/synaptic/issues/137, we're using fn.toString() and bunch of regex-es to create a worker for now (I know, it's bad, still we already have a fix, but it is breaking some of our actually-interal, but overly-exposed APIs, so it goes to v2), and we need to either have one version minified by us or it will be minified by CDNs.
2016-09-12 01:36:48 +03:00

18 linhas
359 B
JavaScript

var webpack = require('webpack')
var license = require('./prebuild.js')
module.exports = {
context: __dirname,
entry: {
synaptic: './src/synaptic.js',
'synaptic.min': './src/synaptic.js'
},
output: {
path: 'dist',
filename: '[name].js',
},
plugins: [
new webpack.NoErrorsPlugin(),
new webpack.BannerPlugin(license())
]
}