wridgeu / github_pages

Development repository for my personal GitHub Pages site.
https://wridgeu.github.io/
Other
1 stars 0 forks source link

Create customTask - CSS Uglify #20

Closed wridgeu closed 4 years ago

wridgeu commented 4 years ago

Maybe I can create a custom task in order to uglify my custom CSS?

https://github.com/SAP/ui5-cli/issues/192

specVersion: "1.0"
kind: project
type: application
metadata:
  name: openui5-sample-app
builder:
  customTasks:
  - name: demoTask
    afterTask: uglify
    configuration:
      color: blue
---
# Task extension as part of your project
specVersion: "1.0"
kind: extension
type: task
metadata:
  name: demoTask
task:
  path: tasks/demoTask.js

create folder tasks in the project root on the same level as webapp create the demo task in the task folder

module.exports = async function({workspace, dependencies, options}) {
    console.log(workspace,dependencies,options)
};

https://sap.github.io/ui5-tooling/api/module-@ui5_builder.tasks.html#.uglify

wridgeu commented 4 years ago

Nevermind. I realized the CSS-files I'm dealing with were already minified and there is no 'actual' uglify for CSS as there is for JS (having everything shortened - by a lot).