Skip to main content
1 vote
0 answers
40 views

Electron ready event fire Twice?

I'm building an electron app and when testing the app i wnated to minify the main.js using UglifyJS and the ready event in the minified version fire twice for some reason, the main code is fine when i ...
benz's user avatar
  • 11
0 votes
1 answer
284 views

terser-webpack-plugin and uglifyjs-webpack-plugin

Since webpack 4 is using terser-webpack-plugin by default in production mode or when we specify -p argument which is a shortcut for specifying --optimize-minimize --define process.env.NODE_ENV="...
Vikram's user avatar
  • 60
0 votes
1 answer
126 views

ReactDOMServer's renderToString method throwing error : clearProviders is not a function

We are using server side rendering with GraalVM. Application is throwing below error org.graalvm.polyglot.PolyglotException: TypeError: <this>.clearProviders is not a function at <js&...
Vikram's user avatar
  • 60
2 votes
1 answer
102 views

Dependencies breaking npm build presumably bringing ES6 code into ES5 compatible legacy build

I'm working on an old, legacy project, to which I had to introduce Highcharts library. Since it was not working with previous version of Canvas I had to upgrade that one to. Those 2 changes were ...
Marcin Zareba's user avatar
0 votes
1 answer
249 views

I Can See Source Code on Browser Even After I Uglify the Project

My problem is, I can see my source code in browser even after I use Terser Plugin with Webpack. The problem is, I use Terser Plugin for transforming my code into non human readable code chunks. After ...
Alihan Keskin's user avatar
0 votes
0 answers
33 views

Standard model for separation of a JJavaScript app with production and developer components

I am new to JavaScript so forgive the simple question - after doing a lot of research, I am even more confused... The app I am writing had production (display of data etc.) and developer (tools to ...
Molly Birk's user avatar
0 votes
1 answer
119 views

Is it possible to prohibit certain symbols when distorting properties? / mangle

I get properties starting with _ and $ (_, $, _a, $a, ...), which leads to an error due to these characters being reserved by Vue. Is there a way to ban certain characters? I didn't find anything ...
Андреслав Козлов's user avatar
1 vote
0 answers
233 views

Minifying JS: Option to compile imports into the minified version

I'm trying to do a JS compiler in Node for websites, but I'm hitting a snag. My compiles keep imports set in the JS. So when its read by the browser it says Uncaught SyntaxError: Cannot use import ...
Fredy31's user avatar
  • 2,837
1 vote
0 answers
1k views

can't install node module in exiting project based on React.js with native

Getting error when I run npm install I want run the exiting react project with react native both project combine in one. i have install nvm for change node version with npm error image node verison ...
Brijesh L's user avatar
0 votes
1 answer
204 views

Using debugger statement in Vue 2 production code

I want to be able to detect if user has devtools open inside my Vue 2 webapp. I use @vue/cli 5.0.8 with default config for creating and building the app. I found this piece of code that should do the ...
Haim's user avatar
  • 368
-2 votes
2 answers
80 views

window.onload does not work when minified using Uglify

When not miniifying the scripts window.onload does work as expected. But when I do minified my scripts using Uglify-js Folder it does not. If I write the following and minify it : window.onload = ...
Marc DG's user avatar
  • 85
1 vote
1 answer
310 views

Parceljs doesn't completely strip comments

We are using Parceljs v2 for bundling our SPAs. We've been noticed by our customer's security team that the comments are not completely stripped from the bundles: We use the default settings for ...
Huqe Dato's user avatar
  • 255
1 vote
1 answer
766 views

Minify and compress js code snippet in react (client side)

I need to minify and compress a code snippet string to be sent to the sever and i'm using UglifyJs for that, But there's two problems with this approach. First that UglifyJs doesn't support Es6+ code ...
Amirhossein Veysi's user avatar
0 votes
2 answers
463 views

uglify.js, browser version returns "is not a function"

Using the uglify.js browser-version, as mentioned here, on the first comment of the OP & getting this error in Chrome console: "UglifyJS.minify is not a function at FileReader." The code ...
Mikey Muss's user avatar
0 votes
0 answers
137 views

Minify script in package.json never finishes executing

I want to minify/uglify a javascript file but after I run the script it never finishes executing. These are the scripts and dependencies I added to it. "scripts": { "minify": &...
Labanino's user avatar
  • 3,980

15 30 50 per page
1
2 3 4 5
57