mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-25 11:03:57 +03:00
32 lines
643 B
JavaScript
32 lines
643 B
JavaScript
|
const path = require('path');
|
||
|
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
|
||
|
|
||
|
module.exports = {
|
||
|
mode: 'production',
|
||
|
entry: {
|
||
|
pagewrap: path.resolve(__dirname, 'src/pageScriptWrap'),
|
||
|
},
|
||
|
output: {
|
||
|
filename: '[name].bundle.js',
|
||
|
},
|
||
|
plugins: [
|
||
|
new ForkTsCheckerWebpackPlugin({
|
||
|
typescript: {
|
||
|
configFile: 'tsconfig.json',
|
||
|
},
|
||
|
}),
|
||
|
],
|
||
|
resolve: {
|
||
|
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
||
|
},
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.(js|ts)x?$/,
|
||
|
use: 'babel-loader',
|
||
|
exclude: /(node_modules|dist\/page\.bundle)/,
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
};
|