This repository was archived by the owner on Sep 8, 2021. It is now read-only.
This repository was archived by the owner on Sep 8, 2021. It is now read-only.
Webpack configuration is ignored #4
Open
Description
I'm needing to apply this to my webpack config to solve a problem with using FaunaDB in my functions:
node-formidable/formidable#337 (comment)
Chris Coyier did it this way in his React project, but I cannot seem to get it to work in my vue.config.js.
https://github.com/chriscoyier/netlify-faunadb-example/blob/master/webpack.config.js
Here's my vue.config.js with everything set up, but it seems as if it's completely ignored when building the function:
const webpack = require("webpack");
module.exports = {
configureWebpack: {
plugins: [
new webpack.DefinePlugin({
"global.GENTLY": false
})
],
node: {
__dirname: true,
},
resolve: {
alias: {
'inherits': 'inherits/inherits_browser.js',
'superagent': 'superagent/lib/client',
'emitter': 'component-emitter',
}
}
}
}
Metadata
Metadata
Assignees
Labels
No labels