mirror of
https://github.com/jlengrand/leaflet-geosearch.git
synced 2026-03-10 08:31:26 +00:00
35 lines
679 B
JavaScript
35 lines
679 B
JavaScript
const webpack = require('webpack');
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: [
|
|
'babel-polyfill',
|
|
path.resolve(__dirname, 'example/main.js'),
|
|
path.resolve(__dirname, 'src/index.js'),
|
|
],
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: 'bundle.js',
|
|
library: 'GeoSearch',
|
|
libraryTarget: 'umd',
|
|
publicPath: 'dist',
|
|
},
|
|
devServer: {
|
|
// contentBase: './example',
|
|
inline: true,
|
|
},
|
|
module: {
|
|
loaders: [
|
|
{
|
|
test: /\.html|\.css$/,
|
|
loader: 'raw-loader',
|
|
},
|
|
{
|
|
test: /\.js$/,
|
|
loaders: ['babel-loader'],
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
};
|