Skip to content

Commit

Permalink
Remove IE8 support from webpack example
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Mar 16, 2023
1 parent 3349d16 commit 6d58247
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 15 deletions.
3 changes: 0 additions & 3 deletions docs/examples/webpack/assets/stylesheets/app-ie8.scss

This file was deleted.

1 change: 0 additions & 1 deletion docs/examples/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"@babel/preset-env": "^7.20.2",
"babel-loader": "^9.1.2",
"copy-webpack-plugin": "^11.0.0",
"html5shiv": "^3.7.3",
"postcss-loader": "^7.0.2",
"sass-embedded": "^1.58.3",
"sass-loader": "^13.2.0",
Expand Down
10 changes: 1 addition & 9 deletions docs/examples/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const TerserPlugin = require('terser-webpack-plugin')

// Module resolution
const frontendPath = dirname(require.resolve('govuk-frontend'))
const html5shivPath = dirname(require.resolve('html5shiv'))

module.exports = ({ WEBPACK_SERVE }, { mode }) => ({
devServer: {
Expand All @@ -20,8 +19,7 @@ module.exports = ({ WEBPACK_SERVE }, { mode }) => ({

entry: [
'./assets/javascripts/main.mjs',
'./assets/stylesheets/app.scss',
'./assets/stylesheets/app-ie8.scss'
'./assets/stylesheets/app.scss'
],

module: {
Expand Down Expand Up @@ -68,7 +66,6 @@ module.exports = ({ WEBPACK_SERVE }, { mode }) => ({

// Compatibility workarounds
ecma: 5,
ie8: true,
safari10: true
}
})]
Expand All @@ -90,11 +87,6 @@ module.exports = ({ WEBPACK_SERVE }, { mode }) => ({
context: resolve(frontendPath, './assets'),
from: '{fonts,images}/**',
to: './assets'
},
{
context: html5shivPath,
from: 'html5shiv.min.js',
to: './assets/javascripts'
}
]
})
Expand Down
2 changes: 0 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6d58247

Please sign in to comment.