experimental-prisma-webpack-plugin

0.0.5 • Public • Published

Experimental Prisma Webpack Plugin

Ensures that your Prisma files are copied

Next.js

const { PrismaPlugin } = require('experimental-prisma-webpack-plugin')

module.exports = {
  output: 'standalone',
  webpack: (config, { isServer }) => {
    if (isServer) {
      config.plugins = [...config.plugins, new PrismaPlugin()]
    }

    return config
  },
}

Webpack

const { PrismaPlugin } = require('experimental-prisma-webpack-plugin')

module.exports = {
  plugins: [new PrismaPlugin()]
}

Known issues

Multiple clients

If you are using multiple clients, they must be of the same version.

This is because the plugin assumes the engines will have same versions.

Readme

Keywords

none

Package Sidebar

Install

npm i experimental-prisma-webpack-plugin

Weekly Downloads

588

Version

0.0.5

License

ISC

Unpacked Size

6.5 kB

Total Files

3

Last publish

Collaborators

  • pirix-gh