Theo options can now be passed as JSON via query string, e.g.
theo-loader?{“transform”:{“type”:”web”},”format”:{“type”:”sass”}}!./tok ens.json
The options format passed to the webpack LoaderOptionsPlugin has
changed: Theo options are specified as they would be to the
theo.convert function. These options apply to all instances of
theo-loader.
For options that vary on a per-transform, per-format or
per-invocation basis, the new getOptions function option should be
used. getOptions receives an initial options object that is the
merged contents of the constant options supplied to the
LoaderOptionsPlugin and any options supplied via query string. The
final options object should be returned.
theo-loader?{“transform”:{“type”:”web”},”format”:{“type”:”sass”}}!./tok ens.json
LoaderOptionsPlugin
has changed: Theo options are specified as they would be to thetheo.convert
function. These options apply to all instances of theo-loader.getOptions
function option should be used.getOptions
receives an initial options object that is the merged contents of the constant options supplied to the LoaderOptionsPlugin and any options supplied via query string. The final options object should be returned.Issue #89