mirror of
https://github.com/jlengrand/leaflet-geosearch.git
synced 2026-03-10 08:31:26 +00:00
more cleaning up
This commit is contained in:
2
.env
2
.env
@@ -1,2 +0,0 @@
|
||||
BING_API_KEY=AtUDjSVEBxo8BwgYUPdfnzHpznaYwDdjjS27jyFDj18nhTUDUjrhc0NwMndZvrXs
|
||||
GOOGLE_API_KEY=AIzaSyDigZ5WMPoTj_gnkUn3p1waYPDa5oE8WOw
|
||||
2
.env.sample
Normal file
2
.env.sample
Normal file
@@ -0,0 +1,2 @@
|
||||
BING_API_KEY=___YOUR_KEY___
|
||||
GOOGLE_API_KEY=___YOUR_KEY___
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@ coverage
|
||||
lib
|
||||
dist
|
||||
.idea
|
||||
.env
|
||||
|
||||
@@ -25,19 +25,33 @@ if (production) {
|
||||
);
|
||||
}
|
||||
|
||||
const entryFiles = [
|
||||
'babel-polyfill',
|
||||
path.join(__dirname, 'src/index.js'),
|
||||
];
|
||||
|
||||
if (!production) {
|
||||
entryFiles.push(path.join(__dirname, 'example/main.js'));
|
||||
}
|
||||
|
||||
export default {
|
||||
entry: [
|
||||
'babel-polyfill',
|
||||
path.join(__dirname, 'src/index.js'),
|
||||
],
|
||||
entry: entryFiles,
|
||||
output: {
|
||||
path: path.join(__dirname, 'dist'),
|
||||
filename: `bundle${production ? '.min' : ''}.js`,
|
||||
library: 'GeoSearch',
|
||||
libraryTarget: 'umd',
|
||||
},
|
||||
devServer: {
|
||||
// contentBase: './example',
|
||||
inline: true,
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
{
|
||||
test: /\.html|\.css$/,
|
||||
loader: 'raw-loader',
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
loaders: ['babel-loader'],
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
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/,
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user