Skip to content
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

@jmotes

Description

@jmotes

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy