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

Developers should be able to pass in their own Webpack configuration #134

Closed
robmcguinness opened this issue Jan 9, 2018 · 0 comments
Closed
Milestone

Comments

@robmcguinness
Copy link
Contributor

Similar too https://github.com/Availity/availity-workflow/blob/v1/webpack/index.js#L19.

function merge(config, webpackConfig) {

 webpackConfig.module.rules.push({
   test: /\.scss$/,
   loaders: ['style-loader', 'css-loader', 'sass-loader'],
   include: path.resolve(__dirname, '../'),
 });
}

module.exports = merge;
@robmcguinness robmcguinness added this to the v4 milestone Feb 26, 2018
TheSharpieOne added a commit that referenced this issue Mar 12, 2018
…ck config

Adds modifyWebpackConfig option to workflow.js. When it is a function it will be called with the current webpack config and a reference to the workflow settings
modifyWebpackConfig can be used to modify or replace the webpack config by returning the desiered final webpack config

Fixes #134, Fixes #146
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

1 participant