Update CSS and JavaScript dependencies
- update to Bootstrap 5.2 - add build-prod for minified production builds - drop jQuery and popper.js as well as unsupported precss - update all build dependencies - use build-prod in Makefile
This commit is contained in:
parent
0ebdbbb4da
commit
ad14916ba5
6 changed files with 551 additions and 783 deletions
2
Makefile
2
Makefile
|
@ -6,7 +6,7 @@ all: $(RESULT)
|
|||
|
||||
$(RESULT): $(SOURCES)
|
||||
$(YARN)
|
||||
$(YARN) run build
|
||||
$(YARN) run build-prod
|
||||
|
||||
clean:
|
||||
rm -rf static
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
@import "~bootstrap/scss/bootstrap";
|
||||
@import "../node_modules/bootstrap/scss/bootstrap";
|
||||
|
||||
$dimmed_white: #f5f5f5;
|
||||
|
||||
|
|
|
@ -15,6 +15,4 @@
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
import 'jquery';
|
||||
import 'popper.js';
|
||||
import 'bootstrap';
|
||||
import 'bootstrap';
|
||||
|
|
32
package.json
32
package.json
|
@ -4,33 +4,33 @@
|
|||
"description": "webpack setup for CAcert static web resources",
|
||||
"scripts": {
|
||||
"build": "webpack",
|
||||
"build-prod": "webpack --mode production",
|
||||
"watch": "webpack --watch"
|
||||
},
|
||||
"private": true,
|
||||
"author": "Jan Dittberner",
|
||||
"license": "Apache-2.0",
|
||||
"devDependencies": {
|
||||
"autoprefixer": "^9.8.6",
|
||||
"bootstrap": "^4.5.3",
|
||||
"autoprefixer": "^10.4.0",
|
||||
"bootstrap": "^5.2.0",
|
||||
"browserslist": "^4.17.0",
|
||||
"clean-webpack-plugin": "^3.0.0",
|
||||
"copy-webpack-plugin": "^7.0.0",
|
||||
"css-loader": "^5.0.1",
|
||||
"clean-webpack-plugin": "^4.0.0",
|
||||
"copy-webpack-plugin": "^11.0.0",
|
||||
"css-loader": "^6.7.1",
|
||||
"file-loader": "^6.2.0",
|
||||
"html-loader": "^1.3.2",
|
||||
"jquery": "^3.5.1",
|
||||
"mini-css-extract-plugin": "^1.3.3",
|
||||
"popper.js": "^1.16.1",
|
||||
"postcss-loader": "^4.1.0",
|
||||
"precss": "^4.0.0",
|
||||
"html-loader": "^4.1.0",
|
||||
"mini-css-extract-plugin": "^2.6.0",
|
||||
"@popperjs/core": "^2.11.6",
|
||||
"postcss": "^8.0.1",
|
||||
"postcss-loader": "7.0.1",
|
||||
"postcss-preset-env": "^7.0.0",
|
||||
"sass": "^1.32.0",
|
||||
"sass-loader": "^10.1.0",
|
||||
"style-loader": "^2.0.0",
|
||||
"sass-loader": "^13.0.0",
|
||||
"style-loader": "^3.3.0",
|
||||
"terser-webpack-plugin": "^5.0.3",
|
||||
"url-loader": "^4.1.1",
|
||||
"webpack": "^5.11.1",
|
||||
"webpack-cli": "^4.3.1",
|
||||
"webpack-manifest-plugin": "^3.0.0"
|
||||
},
|
||||
"dependencies": {}
|
||||
"webpack-manifest-plugin": "^5.0.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -79,10 +79,9 @@ module.exports = {
|
|||
postcssOptions: {
|
||||
plugins: [
|
||||
[
|
||||
'precss',
|
||||
'autoprefixer',
|
||||
],
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
}, {
|
||||
|
|
Loading…
Reference in a new issue