@fbi-js/webpack-config-react
v1.4.3
Published
Webpack config for React.js project
Downloads
51
Readme
@fbi-js/webpack-config-react
Webpack config for React.js project. Extends @fbi-js/webpack-config-base
Usage
npm i -D @fbi-js/webpack-config-react webpack@5 webpack-dev-server@next
./webpack.config.js
const config = require('@fbi-js/webpack-config-react').default // default module.exports = config() // extends module.exports = { ...config(), entry: './index.js' } // with options module.exports = config({ options: { isTs: true } })
or
./webpack.config.ts
import config from '@fbi-js/webpack-config-react' // default export default config() // extends export default { ...config(), entry: './index.js' } // with options export default config({ options: { isTs: true } })
Options
License
Licensed under MIT.