auth0 / node-saml

SAML assertion creation for node
MIT License
70 stars 91 forks source link

Not working on Webpack #62

Open ryasmi opened 4 years ago

ryasmi commented 4 years ago

Please can you just upgrade xml-encryption to ^1.0.0 so that this works on Webpack? See related issue below.

https://github.com/auth0/node-xml-encryption/issues/55

breenie commented 3 years ago

I know this is a year old but I needed to do this. It's possible to make this work with webpack by using...

const CopyPlugin = require("copy-webpack-plugin");

module.exports = {
  node: {
    __dirname: false
  },
  plugins: [
    new CopyPlugin({
      patterns: [
        {
          from: "./node_modules/saml/lib/saml20.template",
          to: "./path/to/your/stuff"
        },
        {
          from: "./node_modules/saml/lib/saml11.template",
          to: "./path/to/your/stuff"
        }
      ]
    })
  ]
};