Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Ability for Plugins to add to certain settings in webpack config... #885

Copy link
Copy link
Open
@NathanaelA

Description

@NathanaelA
Issue body actions

Is your feature request related to a problem? Please describe.
Would be nice if plugins can add/change some of the webpacking configuration ability...

Describe the solution you'd like
I would suggest that certain of the fields in the webpack.config file be changeable by some json settings; either as part of the actual plugin package.json file itself; or a hook during install updates the fields in a global application wide webpack json file.

For example:
https://github.com/NativeScript/nativescript-dev-webpack/blob/master/templates/webpack.javascript.js#L213

For my sqlite plugin, I would like to add:
**.sqlite to the Glob pattern; in addition I would like to add some files to the externals, but the new configuration file appears to be controlled exclusively by environmental variables, which makes it even harder for users to follow my documentation as they need to add two externals for at least one of my plugins. If this could be controlled by plugins, then these externals (& glob patterns) could be "installed" with part of the plugin and the end user wouldn't have to do anything...

Describe alternatives you've considered
Rewriting the config file using a hook, to add the missing pieces; but this seems very error prone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.