Comments (12)
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.
@oskarrough That looks really interesting. Thanks so much!
from ember-cli-inline-content.
@gdub22 any advice?
from ember-cli-inline-content.
inlineContent: {
vendorCSS: '/dist/assets/vendor.css',
websiteCSS: '/dist/assets/website.css'
}
from ember-cli-inline-content.
@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.
It's working. Make sure you place {{content-for "vendorCSS"}}
placeholders, etc in your index.html. See README.
from ember-cli-inline-content.
@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.
Ah ok, not sure if possible then. PRs welcome if you figure it out.
from ember-cli-inline-content.
Don't think it is possible without running two builds or doing something to hijack the build
from ember-cli-inline-content.
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.
@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.
@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)
- Add ability to add arbitrary attributes to tags HOT 1
- Possibility to include some files only in prod, development or test HOT 2
- Possibility to include some files from an other server HOT 12
- Cannot find module 'uglify-js' HOT 2
- Accessing config from environment.js HOT 2
- Add ability to calculate sha256 hashes for CSP HOT 4
- Adding custom thirdparty scripts, e.g. <script src=".." HOT 5
- Cannot set property 'fromString' of undefined HOT 3
- Add ability to vary inline content depends of route. HOT 1
- Allow empty string to be rendered HOT 3
- Inline Content do imports? HOT 3
- recompile and reload page in dev mode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-cli-inline-content.