mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-02 22:17:39 +00:00
This is dynamically added to the bundle depending on the environment. In production, react-devtools will not be bundled. Build a development bundle using `yarn build:dev`
22 lines
520 B
JavaScript
22 lines
520 B
JavaScript
const path = require('path');
|
|
const CommonWebpack = require('./webpack.common');
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
|
|
module.exports = CommonWebpack({
|
|
mode: 'development',
|
|
devtool: 'inline-source-map',
|
|
entry: ['react-devtools', './src/index.tsx'],
|
|
// Output path
|
|
output: {
|
|
path: path.resolve(process.cwd(), 'build'),
|
|
filename: 'index.js',
|
|
},
|
|
plugins: [
|
|
new HtmlWebpackPlugin({
|
|
template: 'public/index.html',
|
|
inject: true,
|
|
minify: false,
|
|
}),
|
|
],
|
|
});
|