8000 .min.js instead of .es5.js · Issue #89 · failwyn/WebCompiler · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

.min.js instead of .es5.js #89

New issue

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

Open
Avman2119 opened this issue Oct 4, 2023 · 3 comments
Open

.min.js instead of .es5.js #89

Avman2119 opened this issue Oct 4, 2023 · 3 comments

Comments

@Avman2119
Copy link

Installed product versions

  • Visual Studio: 2022
  • This extension: 1.14.11

Description

When I compile .js files, they automatically compile to a .es5.js and .es5.js.gz file. Is there a setting to make them compile automatically to a .min.js and .min.js.gz file? Right now I have to compile it as .es5.js and then change the compiilerconfig.json file to have .min instead of .es5.

@failwyn
Copy link
Owner
failwyn commented Oct 4, 2023

Can you post your compiler json file?

@Avman2119
Copy link
Author

[
{
"outputFile": "wwwroot/js/slider.min.js",
"inputFile": "wwwroot/js/slider.js"
}
]

When I first compile the js file it's like the following

[
{
"outputFile": "wwwroot/js/slider.es5.js",
"inputFile": "wwwroot/js/slider.js"
}
]

Below is the .defaults file
{
"compilers": {
"less": {
"autoPrefix": "",
"cssComb": "none",
"ieCompat": true,
"math": null,
"strictMath": false,
"strictUnits": false,
"relativeUrls": true,
"rootPath": "",
"sourceMapRoot": "",
"sourceMapBasePath": "",
"sourceMap": false
},
"sass": {
"autoPrefix": "",
"loadPaths": "",
"style": "expanded",
"relativeUrls": true,
"sourceMap": false
},
"nodesass": {
"autoPrefix": "",
"includePath": "",
"indentType": "space",
"indentWidth": 2,
"outputStyle": "nested",
"precision": 5,
"relativeUrls": true,
"sourceMapRoot": "",
"lineFeed": "",
"sourceMap": false
},
"stylus": {
"sourceMap": false
},
"babel": {
"sourceMap": false
},
"coffeescript": {
"bare": false,
"runtimeMode": "node",
"sourceMap": false
},
"handlebars": {
"root": "",
"noBOM": false,
"name": "",
"namespace": "",
"knownHelpersOnly": false,
"forcePartial": false,
"knownHelpers": [],
"commonjs": "",
"amd": false,
"sourceMap": false
}
},
"minifiers": {
"css": {
"enabled": true,
"termSemicolons": true,
"gzip": false
},
"javascript": {
"enabled": true,
"termSemicolons": true,
"gzip": true
}
},
"formats": [
"es6;",
{
"extensions": [ ".es6.js" ],
"compiler": {
"name": "babel",
"output": ".js"
},
"minifier": {
"name": "javascript",
"output": ".min.js",
"map": ".js.map"
}
},
"es5;",
{
"extensions": [ ".js" ],
"compiler": null,
"minifier": {
"name": "javascript",
"output": ".min.js",
"map": ".js.map"
}
},
"js;",
{
"extensions": [ ".js" ],
"compiler": null,
"minifier": {
"name": "javascript",
"output": ".min.js",
"map": ".js.map"
}
},
"sass;",
{
"extensions": [ ".scss", ".sass" ],
"compiler": {
"name": "sass",
"output": ".css"
},
"minifier": {
"name": "css",
"output": ".min.css",
"map": ".css.map"
}
},
"css;",
{
"extensions": [ ".css" ],
"compiler": null,
"minifier": {
"name": "css",
"output": ".min.css",
"map": ".css.map"
}
}
]
}

@failwyn
Copy link
Owner
failwyn commented Oct 4, 2023

I’ll take a look at this tomorrow, I’ve never used any of the es5 or es6 functionality. As a workaround, you could try disabling minification in the compiler config and use the BundlerMinifier VSIX to minify the files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0