Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Considering Webpack support? #931

Open
rparree opened this issue Jun 21, 2017 · 22 comments
Open

Considering Webpack support? #931

rparree opened this issue Jun 21, 2017 · 22 comments

Comments

@rparree
Copy link

rparree commented Jun 21, 2017

Hi,

I was just wondering if you guys are perhaps planning a webpack version of assemble.io. My build process of my site became too complicated and would like to simplify by have a single build for the front-end.

Thanks

@assemblebot
Copy link

@rparree Thanks for the issue! If you're reporting a bug, please be sure to include:

  • The version of assemble you are using.
  • Your assemblefile.js (This can be in a gist)
  • The commandline output. (Screenshot or gist is fine)
  • What you expected to happen instead.

If your issue is related to one of the following, please open an issue there:

  • grunt-assemble Issues with using assemble in grunt or the grunt-assemble library.
  • handlebars-helpers Issues with using handlebars helpers from the handlebars-helpers library.

@jonschlinkert
Copy link
Member

Hi @rparree thanks for the issue. If you wouldn't mind linking to your build, I've love to take a look at what you were doing, maybe it will inspire some ideas.

@rparree
Copy link
Author

rparree commented Jun 21, 2017

The problem is, it is not one build. Currently the site uses angular 1.x with scalaJS. so i have two builds: one sbt build and then one for the static site.

I would like to move to Angular 2.x with Webpack (migrating to typescript to simplify the site's technologies), It would then be great if i could also use assemble.io within that same build.

The current build system for assemble.io is grunt based. Meanwhile many people have moved to webpack so i was wondering if you were also considering moving there.

I guess i could always call assemble from webpack (and move all the non-static site generation from the assemble build to webpack)

@rparree
Copy link
Author

rparree commented Jun 22, 2017

I have two assemble projects.

For the other than mentioned above i have meanwhile migrated all the non-assemble tasks from the assemble file into a webpack configuration (scss, copy static files, etc). So my javascript can now be managed by webpack.

It does mean i need to perform two build steps: one to call assemble (to generate the html files) and then webpack to generate everything else.

IS it something you guys have considered (moving/supporting) webpack?

@doodirock
Copy link

This would move assemble to modern front end development. Our devs have been stuck using things like grunt just to keep using assemble, but would love to move onto something modern day with webpack and leave that stuff in the past.

@jonschlinkert
Copy link
Member

Our devs have been stuck using things like grunt just to keep using assemble

Assemble can be used without another build system, and the webpack configuration described could easily be called by an assemble task, so that just running assemble would build everything. I'm not sure how we could make it much simpler

@doodirock
Copy link

Fair enough. I'll look into running off assemble

@jonschlinkert
Copy link
Member

We can show examples or help with code if we have something to build from.

@rparree
Copy link
Author

rparree commented Jul 6, 2017

it might be a good idea to setup an example " mini-blog". I will have time this weekend to setup an example project that we might use as a proof of concept?

@jonschlinkert
Copy link
Member

that would be useful. thanks! to get the best feedback possible, my suggestion is to only add the minimum amount of code to get the idea of what you want to accomplish.

@ghost
Copy link

ghost commented Aug 4, 2017

Find any time @rparree ?

@rparree
Copy link
Author

rparree commented Aug 7, 2017

Not yet, i will find some time this week

@rparree
Copy link
Author

rparree commented Aug 14, 2017

I was not able to find time. I will try this week as i really need to simplify the build and deploy process of a site using webpack/assemble

@korya
Copy link

korya commented Dec 6, 2017

I would love to see webpack support as well. The best option is to have a loader that will take care of processing HTML templates by passing them through assemble, such that it can be used with html-webpack-plugin.

@doowb
Copy link
Member

doowb commented Dec 6, 2017

@korya if you (or anyone) can make a simple repository with webpack setup and how they think assemble could fit into the build (either assemble running webpack or a webpack plugin to run assemble), it would help us understand how to help.

@jonschlinkert
Copy link
Member

Or even just describe the process/workflow in detail, step-by-step. Webpack is already used successfully alongside assemble, gulp, Grunt and other build systems, it would help to see the benefits of a deeper level of integration so that we can figure out if it should be a plugin, middleware, or documentation examples.

@conechan
Copy link

Hi all,

I've made a simple loader for using assemble with html-webpack-plugin.

https://github.com/conechan/assemble-webpack-loader

@raviroshan
Copy link

@rparree @doodirock : You can try considering assemble-webpack

We are already using it as part of many Enterprise application built using React-Redux, Webpack and setup Assemble for generating Server Side pages using Handlebars.

🎉🎉

@rscarpim
Copy link

rscarpim commented Aug 9, 2019

Hi, I just would like to know how can I a have as a render page in .php file please.

Thank you

@jonschlinkert
Copy link
Member

@rscarpim this isn't the correct repository to ask your question.

@rscarpim
Copy link

rscarpim commented Aug 9, 2019

Oops Sorry about that.

@dpd73
Copy link

dpd73 commented Jun 30, 2023

@rparree @doodirock : You can try considering assemble-webpack

We are already using it as part of many Enterprise application built using React-Redux, Webpack and setup Assemble for generating Server Side pages using Handlebars.

🎉🎉

I'm using this to migrate away from grunt to webpack but it's missing the option of including a plugin, specifically grunt-assemble-permalinks

Would be great if someone could give me a steer on how-to extend it. I've forked said repo in an attempt to do such...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

11 participants