Giter VIP home page Giter VIP logo

Comments (12)

RobbieTheWagner avatar RobbieTheWagner commented on June 15, 2024 1

I do not think this is possible without doing some custom build stuff and essentially running the build twice, so going to close.

from ember-cli-inline-content.

ianpetzer avatar ianpetzer commented on June 15, 2024 1

@oskarrough That looks really interesting. Thanks so much!

from ember-cli-inline-content.

RobbieTheWagner avatar RobbieTheWagner commented on June 15, 2024

@gdub22 any advice?

from ember-cli-inline-content.

gpoitch avatar gpoitch commented on June 15, 2024
inlineContent: {
  vendorCSS: '/dist/assets/vendor.css',
  websiteCSS: '/dist/assets/website.css'
}

from ember-cli-inline-content.

RobbieTheWagner avatar RobbieTheWagner commented on June 15, 2024

@gdub22 this doesn't seem to work. Isn't inlining the content part of generating the dist? Therefore, wouldn't there be no dist?

from ember-cli-inline-content.

gpoitch avatar gpoitch commented on June 15, 2024

It's working. Make sure you place {{content-for "vendorCSS"}} placeholders, etc in your index.html. See README.

from ember-cli-inline-content.

RobbieTheWagner avatar RobbieTheWagner commented on June 15, 2024

@gdub22 it does not work for me. It only works if you have previously run a build. The dist is not generated until you build. Blow away your dist and run a new build and you will see it does not work.

from ember-cli-inline-content.

gpoitch avatar gpoitch commented on June 15, 2024

Ah ok, not sure if possible then. PRs welcome if you figure it out.

from ember-cli-inline-content.

RobbieTheWagner avatar RobbieTheWagner commented on June 15, 2024

Don't think it is possible without running two builds or doing something to hijack the build

from ember-cli-inline-content.

oskarrough avatar oskarrough commented on June 15, 2024

Could this addon be configured to run after the dist is generated? Inlining the built, minified styled would be great.

from ember-cli-inline-content.

ianpetzer avatar ianpetzer commented on June 15, 2024

@oskarrough Did you have any success getting this working? I would love to be able to inline my minified app css straight into the index.html

from ember-cli-inline-content.

oskarrough avatar oskarrough commented on June 15, 2024

@ianpetzer nah, couldn't figure it out. I ended up doing this https://gist.github.com/oskarrough/02833da29934ad34c1615ea2a15ff82e

from ember-cli-inline-content.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.