From aa822bebf2e05cadbcc4f2e6b84b20098b471e2e Mon Sep 17 00:00:00 2001 From: Bruno Dias Date: Mon, 9 Dec 2019 16:44:46 -0300 Subject: [PATCH] [chore] it's not necessary to make chunks when running the examples. --- examples/basic/index.html | 3 +-- examples/bootstrap/index.html | 3 +-- webpack.config.js | 17 +---------------- 3 files changed, 3 insertions(+), 20 deletions(-) diff --git a/examples/basic/index.html b/examples/basic/index.html index 6b81d51e..1fd1f08e 100644 --- a/examples/basic/index.html +++ b/examples/basic/index.html @@ -14,7 +14,6 @@

an accessible React modal dialog component

Fork me on GitHub - - + diff --git a/examples/bootstrap/index.html b/examples/bootstrap/index.html index 8e5c0c46..3cebe345 100644 --- a/examples/bootstrap/index.html +++ b/examples/bootstrap/index.html @@ -14,7 +14,6 @@

an accessible React modal dialog component

Fork me on GitHub - - + diff --git a/webpack.config.js b/webpack.config.js index 5b343114..b7f655fa 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -24,35 +24,20 @@ function buildEntries() { module.exports = { mode: 'development', - entry: buildEntries(), - output: { filename: '[name].js', - chunkFilename: '[id].chunk.js', path: path.resolve(__dirname, './examples/__build__'), publicPath: '/__build__/' }, - module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: { loader: 'babel-loader' } } ] }, - resolve: { alias: { "react-modal": path.resolve(__dirname, "./src") } - }, - - optimization: { - splitChunks: { - chunks: 'all' - } - }, - - plugins: [ - new webpack.LoaderOptionsPlugin({ debug: true }) - ] + } };