Skip to content

Commit

Permalink
WIP but extension now starts
Browse files Browse the repository at this point in the history
  • Loading branch information
sauntimo committed Mar 6, 2024
1 parent 9d4e995 commit de514b9
Show file tree
Hide file tree
Showing 48 changed files with 842 additions and 729 deletions.
2 changes: 2 additions & 0 deletions build/webpack/config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ module.exports = {
publicPath: '/app/'
},

plugins: [],

// Module configuration.
resolve: {
alias: {
Expand Down
14 changes: 12 additions & 2 deletions build/webpack/config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const webpack = require('webpack');
const path = require('path');
const StatsWriterPlugin = require('webpack-stats-plugin').StatsWriterPlugin;
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const TerserPlugin = require('terser-webpack-plugin');

Expand Down Expand Up @@ -68,10 +69,20 @@ config.plugins = [
}),
new webpack.ProvidePlugin({
process: 'process/browser'
}),
new StatsWriterPlugin({
filename: 'manifest.json',
transform: function transformData(data) {
const chunks = {
app: data.assetsByChunkName.app[1],
style: data.assetsByChunkName.app[0],
vendors: `auth0-authz.ui.vendors.${version}.js`
};
return JSON.stringify(chunks);
}
})
];


config.optimization = {
minimize: true,
minimizer: [
Expand Down Expand Up @@ -131,5 +142,4 @@ config.optimization = {
}
};

console.log('config', config);
module.exports = config;
Loading

0 comments on commit de514b9

Please sign in to comment.