Skip to content
Snippets Groups Projects
Commit 5b75ca46 authored by Glenn Vorhes's avatar Glenn Vorhes
Browse files

added helper for openlayers require

parent 7b6836f7
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"files": ["lib", "doc", "src", "ext"], "files": ["lib", "doc", "src", "ext"],
"scripts": { "scripts": {
"test": "node node_modules\\karma\\bin\\karma start karma.conf.js", "test": "node node_modules\\karma\\bin\\karma start karma.conf.js",
"ol": "node node_modules/openlayers/tasks/build.js src/ol/ol-config.json src/ol/ol.js", "ol": "node node_modules/openlayers/tasks/build.js src/ol/ol-config.json src/ol/ol-build.js",
"lint": "eslint src/**/*.js", "lint": "eslint src/**/*.js",
"jsdoc": "jsdoc -r -d doc src", "jsdoc": "jsdoc -r -d doc src",
"src2lib": "babel src --out-dir lib --presets es2015 --ignore ol.js & COPY /Y src\\ol\\ol.js lib\\ol\\ol.js" "src2lib": "babel src --out-dir lib --presets es2015 --ignore ol.js & COPY /Y src\\ol\\ol.js lib\\ol\\ol.js"
......
...@@ -70,7 +70,7 @@ export function bundleEs2015(inputFile, outFile, production) { ...@@ -70,7 +70,7 @@ export function bundleEs2015(inputFile, outFile, production) {
bundler.transform(babelify.configure({ bundler.transform(babelify.configure({
presets: ["es2015"], presets: ["es2015"],
ignore: /ol\.js|jquery\.min/ ignore: /ol-build\.js|jquery\.min/
})); }));
if (!production) { if (!production) {
......
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment