mirror of
https://github.com/jlengrand/leaflet-geosearch.git
synced 2026-03-10 08:31:26 +00:00
chore: fix docz
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
# Leaflet.GeoSearch
|
||||
|
||||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
||||
|
||||
[](#contributors-)
|
||||
|
||||
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
||||
|
||||
**Demo and Docs: [smeijer.github.io/leaflet-geosearch](https://smeijer.github.io/leaflet-geosearch)**
|
||||
@@ -330,6 +332,9 @@ Bing does not support `CORS`, and requires `jsonp` to be used instead.
|
||||
In case you decide to write your own provider, please consider submitting a PR
|
||||
to share your work with us.
|
||||
|
||||
You can use the docs as "development environment". Please run `npm run start` to get up and running. The docs will
|
||||
refresh when you change source files.
|
||||
|
||||
[leaflet]: http://leafletjs.com
|
||||
[docs]: https://smeijer.github.io/leaflet-geosearch
|
||||
[babel-polyfill]: https://npmjs.com/babel-polyfill
|
||||
|
||||
@@ -1,8 +1,21 @@
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
const path = require('path');
|
||||
|
||||
exports.onCreateWebpackConfig = (args) => {
|
||||
args.actions.setWebpackConfig({
|
||||
exports.onCreateWebpackConfig = ({ actions, stage, loaders }) => {
|
||||
if (stage === 'build-html' || stage === 'develop-html') {
|
||||
actions.setWebpackConfig({
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: [/node_modules\/leaflet/, /node_modules\\leaflet/],
|
||||
use: loaders.null(),
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
actions.setWebpackConfig({
|
||||
resolve: {
|
||||
modules: [path.resolve(__dirname, '../docs'), 'node_modules'],
|
||||
alias: {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"allowJs": true,
|
||||
"pretty": true,
|
||||
"strict": true,
|
||||
"rootDir": "src",
|
||||
"rootDirs": ["src", "docs"],
|
||||
"sourceMap": true,
|
||||
"removeComments": false,
|
||||
"noEmitHelpers": false,
|
||||
|
||||
Reference in New Issue
Block a user