0.1.1 • Published 6 months ago

prisma-webpack-plugin v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

prisma-webpack-plugin

generate code from prisma files before webpack compiling after you changed you prisma schema.

Getting Started

$ npm install prisma-webpack-plugin --save-dev

Example

in webpack.config.js

const PrismaPlugin = require('prisma-webpack-plugin');

module.exports = {
  // ...
  plugins: [
    new PrismaPlugin({
      prisma: path.join(__dirname, './prisma/schema.prisma')
    })
  ]
};

You can use import { PrismaClient } from '@prisma/client'; in your code.

License

ISC

0.1.1

6 months ago

0.1.0

6 months ago