-
Notifications
You must be signed in to change notification settings - Fork 69
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
Discussion: Version 3 release #97
Comments
Hi there! I'm testing it on my app and it's already in production :) Here's my setup :
const { environment } = require('@rails/webpacker')
// Load Webpack config
const bootstrap = require('./loaders/bootstrap')
const datatables = require('./loaders/datatables')
const erb = require('./loaders/erb')
const jquery = require('./loaders/jquery')
const modernizr_loader = require('./loaders/modernizr_loader')
const modernizr_resolver = require('./loaders/modernizr_resolver')
const yadcf = require('./loaders/yadcf')
const webpack = require('webpack')
// Load resolve-url-loader
environment.loaders.get('sass').use.splice(-1, 0, {
loader: 'resolve-url-loader'
})
// Replace existing coffee loader with CS2 version
const babel_loader = environment.loaders.get('babel')
environment.loaders.insert('coffee', {
test: /\.coffee(\.erb)?$/,
use: babel_loader.use.concat(['coffee-loader'])
})
// Add Webpack loaders
environment.loaders.append('bootstrap', bootstrap)
environment.loaders.append('datatables', datatables)
environment.loaders.append('erb', erb)
environment.loaders.append('jquery', jquery)
environment.loaders.append('modernizr_loader', modernizr_loader)
environment.loaders.append('yadcf', yadcf)
// Merge Modernizr config
environment.config.merge(modernizr_resolver)
// Export configured environment
module.exports = environment It solves an issue with JQueryUI where images were not exported. Thank you! |
As requested in #98, some feedback on the two engines:
|
The same here. See #98 (comment). |
Awesome! It's working well :) |
Working well sofar for the project I'm working on as well. |
@rjgotten from my side I am checking correctness of a billion source-maps from the e2e tests. Following that I am happy to make a Once at Either
Happy to take thoughts. If there is any regressions with release then I might be having to make frantic fixes and imposing on those here to retest. |
On the subject of outgoing source-maps... engine:postcss 👍 The mappings look good for the 10 cases in the e2e tests. I reviewed both The e2e tests are relatively simple cases but it gives some confidence, and really this is engine:rework The mappings look okay in |
This is published as version |
|
Only 3 thumbs in a week. But I am inclined to release (today?) anyhow. Either way I think it is time to be on |
🎉 Published as [email protected] 🎉 Thanks for all your help! I shall close the issue but please feel free to continue commenting. |
Finally
rework
has been updated topostcss
!An alpha is available as resolve-url-loader@next. This
dist-tag
will be updated as we near release.Refer to the readme for migration instructions.
Breaking Changes
Feedback required
Moving forward on this release is contingent to a few questions..
engine: rework
?engine: postcss
(i.e. the new default) ?And it would be nice to know...
Maturity
For an alpha this seems (to me) pretty robust.
The only API that is in question is the
join
function. This is advanced feature and is unlikely to be needed by most users. If you intend to use a customjoin
(in place of the file search "magic") then please let me know.I've not tested any complex (real-world) builds. If you have a use-case you can encode into an example project then I'm definitely interested.
The text was updated successfully, but these errors were encountered: