4

So my question is kinda a clone of this one except the answer proposed use .net technology and I'm working on linux.

Here is a summary :

I'm working with html5 based slide for presentation. These slides are created like every website with subfolders containing resources. I'm looking for a way to convert this slides in a standalone file to be able to share them easily.

This just means replacing all images by base64 images and js/css import by inline plain text. I'm also using require.js so replacing javascript import could be a bit more tricky but this will be a second time problem.

I'm not using MHTML because it's not really supported by browsers.

3
  • 1
    You could convert them all into a zip file for easy sharing. Commented Dec 3, 2012 at 11:14
  • "This just means replacing all images by base64 images and js/css import by inline plain text." So which part don't you know how to do? Or are you trying to write code that creates the standalone files for you? Commented Dec 3, 2012 at 11:26
  • 1
    Sorry if this wasn't clear, but yeah, I would like to do it in a automatic way. Actually If I don't find any good solution I may create it myself in Java. Commented Dec 3, 2012 at 12:06

2 Answers 2

1

Try to use Gulp.js or Grunt.js which operate with files and have plenty of plugins each. I personally prefer to use Gulp because of its stream-based model—it's fast and flexible, but you may find Grunt more simple or (very likely) find an appropriate plugin faster. Both of them are Node.js utils accepting configuration files written in JavaScript, so you don't have to use Java or any nonconventional technology for this task.

You may start with reading an introductionary article about Gulp, then search for available gulp plugins by one of the keywords: inline, asset, minify, etc.

Good luck with workflow optimization!

Sign up to request clarification or add additional context in comments.

2 Comments

Thks It's a good idea. I'm actually using grunt in a different project. I'll take a look into both see if I can come up with a satisfying plugin chain.
I know have been almost 10 years... Do you still have a workable solution? :D
1

Use the single-file-cli which does what you need.

Comments

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.