photo-view
Version:
PhotoView - Pan, PinchZoom and Swipe for mobile
34 lines (32 loc) • 643 B
JavaScript
var webpack = require('webpack');
module.exports = {
entry: ['./index.js'],
target: 'node',
output: {
path: './dist',
filename: 'build.js',
library: 'PhotoView',
libraryTarget: 'umd'
},
devtool: 'source-map',
cache: true,
module: {
loaders: [{
test: /\.js$/,
loader: 'babel',
exclude: /node_modules/
}]
},
externals: {
"hammerjs": {
commonjs: "hammerjs",
commonjs2: "hammerjs",
root: "Hammer"
}
},
plugins: [
new webpack.DefinePlugin({
global: {}
})
]
}