-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(examples/js-chart-and-grid-messagerouter): Change bundler to we…
…bpack
- Loading branch information
Showing
4 changed files
with
4,765 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
examples/js-chart-and-grid-messagerouter/js-chart/rollup.config.js
This file was deleted.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
examples/js-chart-and-grid-messagerouter/js-chart/webpack.config.cjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Generated using webpack-cli https://github.com/webpack/webpack-cli | ||
|
||
const path = require('path'); | ||
|
||
const isProduction = process.env.NODE_ENV == 'production'; | ||
|
||
|
||
const config = { | ||
entry: './chart.js', | ||
output: { | ||
path: path.resolve(__dirname, 'dist'), | ||
filename: 'bundle.js', | ||
libraryTarget: 'commonjs', | ||
module: false, | ||
iife: true | ||
|
||
}, | ||
plugins: [ | ||
// Add your plugins here | ||
// Learn more about plugins from https://webpack.js.org/configuration/plugins/ | ||
], | ||
module: { | ||
rules: [ | ||
// Add your rules for custom modules here | ||
// Learn more about loaders from https://webpack.js.org/loaders/ | ||
], | ||
}, | ||
optimization: { | ||
minimize: false, | ||
}, | ||
}; | ||
|
||
module.exports = () => { | ||
if (isProduction) { | ||
config.mode = 'production'; | ||
} else { | ||
config.mode = 'development'; | ||
} | ||
return config; | ||
}; |
Oops, something went wrong.