- Implemented a global toggle to enable/disable background queue processing. - Added a Side Panel (Sidebar.html) to view pending edits. - Added per-item controls: 'Delete' to remove from queue, 'Push' to force update. - Updated 'onEditQueue.ts' with robust error handling for batch processing. - Updated documentation (README, ARCHITECTURE) to reflect new features. - Fixed 'clasp' deployment issues by cleaning up manifest management.
48 lines
1.0 KiB
JavaScript
48 lines
1.0 KiB
JavaScript
const path = require('path');
|
|
const GasPlugin = require("gas-webpack-plugin");
|
|
const TerserPlugin = require('terser-webpack-plugin');
|
|
|
|
const CopyPlugin = require("copy-webpack-plugin");
|
|
|
|
module.exports = {
|
|
entry: './src/global.ts',
|
|
optimization: {
|
|
minimize: false,
|
|
minimizer: [
|
|
new TerserPlugin({
|
|
terserOptions: {
|
|
keep_classnames: true,
|
|
keep_fnames: true
|
|
}
|
|
})
|
|
]
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.ts?$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/,
|
|
},
|
|
],
|
|
},
|
|
resolve: {
|
|
extensions: ['.tsx', '.ts', '.js'],
|
|
},
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: 'bundle.js'
|
|
},
|
|
plugins: [
|
|
new GasPlugin({
|
|
comment: true,
|
|
autoGlobalExportsFiles: ['**/*.ts'],
|
|
}),
|
|
new CopyPlugin({
|
|
patterns: [
|
|
{ from: "src/*.html", to: "[name][ext]" },
|
|
{ from: "src/appsscript.json", to: "[name][ext]" },
|
|
],
|
|
}),
|
|
]
|
|
}; |