generated from hmcts/expressjs-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump @ministryofjustice/frontend from 1.3.0 to 1.4.2 Bumps [@ministryofjustice/frontend](https://github.com/ministryofjustice/moj-frontend) from 1.3.0 to 1.4.2. - [Release notes](https://github.com/ministryofjustice/moj-frontend/releases) - [Changelog](https://github.com/ministryofjustice/moj-frontend/blob/main/CHANGELOG.md) - [Commits](ministryofjustice/moj-frontend@v1.3.0...v1.4.2) --- updated-dependencies: - dependency-name: "@ministryofjustice/frontend" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump govuk-frontend from 4.0.1 to 4.1.0 Bumps [govuk-frontend](https://github.com/alphagov/govuk-frontend) from 4.0.1 to 4.1.0. - [Release notes](https://github.com/alphagov/govuk-frontend/releases) - [Changelog](https://github.com/alphagov/govuk-frontend/blob/main/CHANGELOG.md) - [Commits](alphagov/govuk-frontend@v4.0.1...v4.1.0) --- updated-dependencies: - dependency-name: govuk-frontend dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * techDebt(CIV-2752): Change build process After GOV.UK Frontend v4.1.0 release build process can be slightly changed by excluding govukFrontend files from the assets and importing them directly from the dependency package * techDebt(CIV-2752): single quotes * techDebt(CIV-2752): fix assets resolve Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
bcc997e
commit 3904ed6
Showing
7 changed files
with
28 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,13 @@ | ||
const path = require('path'); | ||
const CopyWebpackPlugin = require('copy-webpack-plugin'); | ||
|
||
const packageJson = require.resolve('govuk-frontend/package.json'); | ||
const root = path.resolve(packageJson, '..', 'govuk'); | ||
const sass = path.resolve(root, 'all.scss'); | ||
const javascript = path.resolve(root, 'all.js'); | ||
const components = path.resolve(root, 'components'); | ||
const assets = path.resolve(root, 'assets'); | ||
const images = path.resolve(assets, 'images'); | ||
const fonts = path.resolve(assets, 'fonts'); | ||
|
||
const copyGovukTemplateAssets = new CopyWebpackPlugin({ | ||
patterns: [ | ||
{ from: images, to: 'assets/images' }, | ||
{ from: fonts, to: 'assets/fonts' }, | ||
{ from: path.join(__dirname, '../node_modules/govuk-frontend/govuk/assets/images'), to: 'assets/images' }, | ||
{ from: path.join(__dirname, '../node_modules/govuk-frontend/govuk/assets/fonts'), to: 'assets/fonts' }, | ||
], | ||
}); | ||
|
||
module.exports = { | ||
paths: { template: root, components, sass, javascript, assets }, | ||
plugins: [copyGovukTemplateAssets], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters