We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expected Behaviour Should be able to minify a JS file (through say webpack) which makes use of Workflow SDK.
Actual Behaviour
Workflow SDK in JS cannot deal with the minifed js file.
Steps to Reproduce the Problem 1.) Build sample DAPR based workflow (https://docs.dapr.io/developing-applications/sdks/js/js-workflow/) 2.) npm install --save-dev webpack webpack-cli terser-webpack-plugin 3.) Build a webpack config file:
// filepath: webpack.config.js const TerserPlugin = require('terser-webpack-plugin');
module.exports = { mode: 'production', entry: './src/index.js', // Replace with the path to your main JS file output: { filename: 'bundle.min.js', // The output file name path: __dirname + '/dist', // The output directory }, optimization: { minimize: true, minimizer: [new TerserPlugin()], }, };
4.) run webpack npx webpack
5.) try to rerun dapr workflow js code thats been minified
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected Behaviour
Should be able to minify a JS file (through say webpack) which makes use of Workflow SDK.
Actual Behaviour
Workflow SDK in JS cannot deal with the minifed js file.
Steps to Reproduce the Problem
1.) Build sample DAPR based workflow (https://docs.dapr.io/developing-applications/sdks/js/js-workflow/)
2.) npm install --save-dev webpack webpack-cli terser-webpack-plugin
3.) Build a webpack config file:
// filepath: webpack.config.js
const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
mode: 'production',
entry: './src/index.js', // Replace with the path to your main JS file
output: {
filename: 'bundle.min.js', // The output file name
path: __dirname + '/dist', // The output directory
},
optimization: {
minimize: true,
minimizer: [new TerserPlugin()],
},
};
4.) run webpack
npx webpack
5.) try to rerun dapr workflow js code thats been minified
The text was updated successfully, but these errors were encountered: