-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Field Modules: build process #308
Comments
Talking with @mstenta in chat, I think we came up with a pretty good potential directory structure for a typical field module (or, specifically, a Drupal module, which can contain multiple field modules, potentially):
In this configuration, the Drupal module will look for the necessary JS builds at |
When we get to #307, we may want to add a |
Had a good discussion with @jgaehring and @paul121 about the potential file structures. Attached is an example farm_eggs module with the full structure (but empty files) that we eventually got to. |
Started a new repository here: https://github.com/jgaehring/farm_weather |
Woohoo! After some struggles, I finally got the build process nailed down with jgaehring/farm_precipitation@b37b587. I had to hammer out most of #309 in order to verify the build process produced a script that could actually be loaded successfully. There's probably more I could do, like configuring source maps, but I think we've got the critical pieces all in place that we need for now. |
Oh another thing I might need to figure out for the 1.1.0 milestone is whether we'll need to add hashes to the outputted filename using Webpack's |
From #309 (comment):
So this is clearly where I want to start.
I think I'd like to approach this, if possible, by building the Webpack config from scratch, while using the current
webpack.config.js
files for reference. The most critical thing will be configuring thevue-loader
properly.vue-loader
Manual SetupThe text was updated successfully, but these errors were encountered: