1

Part of code Angular JS:

styles: [
    ["[_nghost-%COMP%]{display:block;background:#fff;box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.header[_ngcontent-%COMP%]{background:linear-gradient(90deg,#0061af 43%,#44ade2);color:#fff;padding:1rem 1.8rem}.message[_ngcontent-%COMP%]{padding:1rem 1.8rem}.button-ok-container[_ngcontent-%COMP%]{padding:0 1.8rem 1rem;text-align:right}.button-ok[_ngcontent-%COMP%]{background:#fff;border:none;box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);vertical-align:baseline;text-align:center;margin:0;min-width:188px;line-height:36px;padding:0 16px;border-radius:2px;color:#0096d7}.icon-close[_ngcontent-%COMP%]:before{font-size:1.5em;color:#fff;cursor:pointer}"]
]

Styles is 25% of all javascript file.

Is it possible export ALL CSS to separate file and don't load styles from JS?

I need a good argument for my developers - that is possible and not very hard. Thanks.

6
  • Does this answer your question? Is it possible to build separate CSS file with angular-cli? Commented Jan 10, 2020 at 11:54
  • Hi. Thank you. But no. I need best argument for my developers. Commented Jan 14, 2020 at 7:57
  • Are you using AngularJS or Angular? What do you mean by I need an angument for my developers? Commented Jan 14, 2020 at 9:41
  • I think Angular, so as code start with: try { window["webpackJsonp"] = undefined; } catch (ex) {} ... I am a client and order optimization js-scripts. They say that css not possible extract and load separately. Thanks for you consultation. Commented Jan 14, 2020 at 11:17
  • What's the name of the JS file? Commented Jan 14, 2020 at 11:42

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.