Menu icon Foundation
Problem inlining with foundation-emails-template @1.0.0

Hello all. I'm using foundation-emails-template as a basis for a command center that will help me generate newsletter emails for my business. You can see my sourcecode here: https://bitbucket.org/nlc/nlc-emails.

Here's my question: When I run `npm build`, shouldn't the output of this process be a single file in the "dist" folder with all of my CSS already inlined? Instead, what I see as a result of running this command is a file called index.html which has successfully gone through inky and panini, etc., but none of the styles have been inlined. Instead, I also see a file in the dist folder called css/app.css with all my scss rules processed, etc. If I head over to http://foundation.zurb.com/emails/inliner-v2.html and paste in the contents of my index.html and my app.css, the site will provide me with the proper final email HTML that can be used with my email marketing service. Shouldn't this inlining step be a part of the `npm build` process, though? Or am I missing something?

Thanks!

inlining

Hello all. I'm using foundation-emails-template as a basis for a command center that will help me generate newsletter emails for my business. You can see my sourcecode here: https://bitbucket.org/nlc/nlc-emails.

Here's my question: When I run `npm build`, shouldn't the output of this process be a single file in the "dist" folder with all of my CSS already inlined? Instead, what I see as a result of running this command is a file called index.html which has successfully gone through inky and panini, etc., but none of the styles have been inlined. Instead, I also see a file in the dist folder called css/app.css with all my scss rules processed, etc. If I head over to http://foundation.zurb.com/emails/inliner-v2.html and paste in the contents of my index.html and my app.css, the site will provide me with the proper final email HTML that can be used with my email marketing service. Shouldn't this inlining step be a part of the `npm build` process, though? Or am I missing something?

Thanks!

This post has been closed. No new replies can be added.

Kurtiss Hare about 3 years ago

I think I found my own answer. When I run `npm run build`, the resulting index.html file has all styles inlined. Previously, I was running `npm build`, which doesn't seem to take the same steps.