34c93cb718
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.
18 linhas
359 B
JavaScript
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())
|
|
]
|
|
}
|