diff options
author | Volker E <volker.e@wikimedia.org> | 2021-05-18 05:49:44 -0700 |
---|---|---|
committer | Volker E <volker.e@wikimedia.org> | 2021-05-18 05:50:18 -0700 |
commit | 3f6ab130e610c7979beabc9fe96414834268e8f4 (patch) | |
tree | dca376e588cc264d9c62bf10c3023b60209f322c /Gruntfile.js | |
parent | 5db1b563da5ba72c977d6d002a4dec1fe87035d4 (diff) | |
download | mediawikicore-3f6ab130e610c7979beabc9fe96414834268e8f4.tar.gz mediawikicore-3f6ab130e610c7979beabc9fe96414834268e8f4.zip |
build: Update SVGO to latest v2.3.0 and re-crush SVGs
SVGO v2.x changed configuration to JS, amending configuration.
Adding new 'minify-svg' npm script.
Also re-crushing SVGs.
Bug: T278656
Change-Id: I1d746fca051cbc00900a05c33e8a401f95848930
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index e15b9897db8f..bebc625114f8 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -9,7 +9,6 @@ module.exports = function ( grunt ) { grunt.loadNpmTasks( 'grunt-eslint' ); grunt.loadNpmTasks( 'grunt-karma' ); grunt.loadNpmTasks( 'grunt-stylelint' ); - grunt.loadNpmTasks( 'grunt-svgmin' ); karmaProxy[ wgScriptPath ] = { target: wgServer + wgScriptPath, @@ -43,41 +42,6 @@ module.exports = function ( grunt ) { }, src: '{resources/src,mw-config}/**/*.{css,less,vue}' }, - svgmin: { - options: { - js2svg: { - indent: '\t', - pretty: true - }, - multipass: true, - plugins: [ { - cleanupIDs: false - }, { - removeDesc: false - }, { - removeRasterImages: true - }, { - removeTitle: false - }, { - removeViewBox: false - }, { - removeXMLProcInst: false - }, { - sortAttrs: true - } ] - }, - all: { - files: [ { - expand: true, - cwd: 'resources/src', - src: [ - '**/*.svg' - ], - dest: 'resources/src/', - ext: '.svg' - } ] - } - }, watch: { files: [ '.{stylelintrc,eslintrc.json}', @@ -149,7 +113,6 @@ module.exports = function ( grunt ) { return ok; } ); - grunt.registerTask( 'minify', 'svgmin' ); grunt.registerTask( 'lint', [ 'eslint', 'banana', 'stylelint' ] ); grunt.registerTask( 'qunit', [ 'assert-mw-env', 'karma:main' ] ); }; |