Skip to content

Commit 749f472

Browse files
Merge pull request #1231 from NHSDigital/autoprefixer-cssnano
Enable PostCSS, Autoprefixer and cssnano
2 parents 2cddc89 + 950c458 commit 749f472

File tree

8 files changed

+1468
-120
lines changed

8 files changed

+1468
-120
lines changed

.browserslistrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
[javascripts]
22
supports es6-module
33

4+
[stylesheets]
5+
> 0.1% in GB and not dead
6+
last 6 Chrome versions
7+
last 6 Firefox versions
8+
last 6 Edge versions
9+
last 2 Samsung versions
10+
Firefox ESR
11+
Safari >= 11
12+
iOS >= 11
13+
IE 11
14+
415
[node]
516
node 24

.github/dependabot.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ updates:
3838
patterns:
3939
- '@babel/*'
4040
- '@rollup/*'
41+
- 'autoprefixer'
42+
- 'baseline-browser-mapping'
43+
- 'caniuse-lite'
44+
- 'cssnano'
45+
- 'postcss'
46+
- 'postcss-*'
4147
- 'rollup'
4248
- 'rollup-*'
4349
- 'sass-embedded'
@@ -46,18 +52,25 @@ updates:
4652
patterns:
4753
- '@typescript-eslint/*'
4854
- '@eslint/*'
55+
- '@types/*'
4956
- 'eslint'
5057
- 'eslint-*'
58+
- 'globals'
5159
- 'prettier'
52-
- 'typescript*'
53-
- '@types/*'
60+
- 'typed-query-selector'
61+
- 'typescript'
62+
- 'typescript-*'
5463

5564
test:
5665
patterns:
5766
- '@testing-library/*'
67+
- '@types/jest'
68+
- '@types/jest-*'
5869
- 'babel-jest'
5970
- 'jest'
6071
- 'jest-*'
72+
- 'jsdom'
73+
- 'outdent'
6174

6275
tools:
6376
patterns:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ WORKDIR /app
88
RUN apk add --no-cache bash
99

1010
# Compile static assets
11-
COPY .browserslistrc babel.config.cjs package.json package-lock.json rollup.config.js ./
11+
COPY .browserslistrc babel.config.cjs package.json package-lock.json postcss.config.js rollup.config.js ./
1212
COPY manage_breast_screening/assets ./manage_breast_screening/assets
1313
RUN npm ci
1414
RUN npm run compile

manage_breast_screening/core/jinja2/layout-app.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
{% block head %}
1010
<meta name="robots" content="noindex, nofollow, noarchive">
11-
<link rel="stylesheet" href="{{ static('css/main.css' )}}">
11+
<link rel="stylesheet" href="{{ static('css/main.min.css' )}}">
1212
{% endblock %}
1313

1414
{% block pageTitle %}{% if form and form.errors %}Error: {% endif %}{% if page_title %}{{ page_title }} – {% endif %}Manage breast screening – NHS{% endblock %}
@@ -82,5 +82,5 @@
8282
{% endblock content %}
8383

8484
{% block bodyEnd %}
85-
<script type="module" src="{{ static('js/bundle.js' )}}"></script>
85+
<script type="module" src="{{ static('js/main.min.js' )}}"></script>
8686
{% endblock %}

0 commit comments

Comments
 (0)