Skip to content

millsp/experimental-prisma-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Ensures that your Prisma files are copied

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published