1.0.6 • Published 4 years ago

webpack-workspaces-support v1.0.6

Weekly downloads
23
License
ISC
Repository
github
Last release
4 years ago

README.md

tweak webpack config with yarn workspaces

install

yarn add webpack-workspaces-support
yarn-tool add webpack-workspaces-support
npm install webpack-workspaces-support

Usage

Next.js

Create a next.config.js in your project

// next.config.js
const withWorkspacesSupport = require('webpack-workspaces-support/nextjs')
module.exports = withWorkspacesSupport({
  /* config options here */
})

Nuxt.js

import withWorkspacesSupport from 'webpack-workspaces-support'

export default {
  build: {
    extend (config, { isDev, isClient }) {
      
      withWorkspacesSupport(config, { isDev, isClient })
      
    }
  }
}