Commit 13beef1 1 parent 3b48565 commit 13beef1 Copy full SHA for 13beef1
File tree 4 files changed +16
-4
lines changed
4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ govukAssets::
110
110
npx nps copy.govukAssets
111
111
112
112
javascripts :
113
+ npm run build
113
114
rsync -r assets/javascripts static/
114
115
115
116
robots :
Original file line number Diff line number Diff line change 14
14
%}
15
15
16
16
{%- block mapAssets %}
17
- < script src ='https://unpkg.com/maplibre-gl@latest/dist /maplibre-gl.js '> </ script >
17
+ < script src ='/static/javascripts /maplibre-gl.js '> </ script >
18
18
< link href ='https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.css ' rel ='stylesheet ' />
19
19
{{ super() }}
20
20
{% endblock -%}
Original file line number Diff line number Diff line change 31
31
"test" : " vitest run" ,
32
32
"coverage" : " vitest run --coverage" ,
33
33
"test-unit" : " vitest run --dir tests/unit/javascript" ,
34
- "test-integration" : " vitest run --dir tests/integration/javascript"
34
+ "test-integration" : " vitest run --dir tests/integration/javascript" ,
35
+ "build" : " rollup -c"
35
36
},
36
37
"dependencies" : {
37
38
"copyfiles" : " ^2.4.1" ,
38
39
"govuk-frontend" : " 4.2.0" ,
39
- "node-sass " : " ^9.0.0 " ,
40
- "nps " : " ^5.10 .0"
40
+ "maplibre-gl " : " ^4.1.2 " ,
41
+ "node-sass " : " ^9.0 .0"
41
42
},
42
43
"devDependencies" : {
43
44
"@vitest/coverage-v8" : " ^0.34.1" ,
Original file line number Diff line number Diff line change
1
+ // get the config object from the package file
2
+ module . exports = [
3
+ {
4
+ input : `./node_modules/maplibre-gl/dist/maplibre-gl.js` ,
5
+ output : {
6
+ file : `static/javascripts/maplibre-gl.js` ,
7
+ format : "iife" ,
8
+ }
9
+ } ,
10
+ ] ;
You can’t perform that action at this time.
0 commit comments