1.0.1 • Published 4 years ago

@feizheng/next-webpack-alias v1.0.1

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

next-webpack-alias

Special alias for webpack.

installation

npm install -S @feizheng/next-webpack-alias

usage

import nxWebpackAlias from 'next-webpack-alias';

const res = nxWebpackAlias({
  react: 'react',
  'react-dom': ['@hot-loader/react-dom', true]
});

// result
{
  react: 'react',
  'react-dom': '@hot-loader/react-dom'
}

// if false
{
  react: 'react'
}