Merge pull request #6131 from afshin/webpack-production
Switch webpack to production mode
commit
4ddc293cc5
@ -1,10 +1,27 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
entry: '@jupyterlab/apputils/lib/sanitizer',
|
||||
entry: ['babel-polyfill', '@jupyterlab/apputils/lib/sanitizer'],
|
||||
output: {
|
||||
filename: 'index.js',
|
||||
path: path.resolve(__dirname, 'notebook/static/components/sanitizer'),
|
||||
libraryTarget: "amd"
|
||||
libraryTarget: "amd",
|
||||
},
|
||||
devtool: false,
|
||||
optimization: {
|
||||
minimize: false
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.m?jsx?$/,
|
||||
use: {
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
presets: ['@babel/preset-env'],
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in new issue