-
Notifications
You must be signed in to change notification settings - Fork 57
Remove NPM minification from StarterWeb and replace with Bundler & Mi… #592
Conversation
This assumes that all people install VS extension, correct? And when project is moved out of VS what then? |
It actually works quite nicely without the VS extension, the BundlerMinifer runs as a precompile command. |
Can you provide some info, link please, I know only its use in VS context (so as an extension: http://madskristensen.net/post/bundling-minification-and-client-side-compilation). |
The dotnetcore1.0 tool project was just published. |
Merged |
This commit brings changes from aspnet/Templates#592 to starter web project template. The Gulp, Grunt options are removed with NPM support removal. Thanks!
This commit brings changes from aspnet/Templates#592 to starter web project template. The Gulp, Grunt options are removed with NPM support removal. Thanks!
I've started to port this changes to generator-aspnet and I cannot get this tool to run in the same fashio as
The tool and dependencies are installed correctly:
Am I missing something? Does |
@peterblazejewicz You have to execute the command in the same working directory as the location of project.json. Here's what the VSCode tasks.json looks like that works: {
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "dotnet",
"options": {
"cwd": "${workspaceRoot}/src/bundlertest"
},
"isShellCommand": true,
"showOutput": "always",
"tasks": [
{
"taskName": "bundle",
"isBuildCommand": true
},
{
"taskName": "clean",
"suppressTaskName": true,
"args": [ "bundle", "clean" ]
}
]
}
|
This is it. OK. Now the bundle seems to work, but it fails with path translation:
The paths are correctly defined in configuration file (taken literally from aspnet/Templates). |
@madskristensen btw: Thanks! |
This commit brings changes from aspnet/Templates#592 to starter web project template. The Gulp, Grunt options are removed with NPM support removal. Thanks!
@mlorbetske Something seems to be wrong with path translation as @peterblazejewicz describes. Any ideas? |
@peterblazejewicz can you try with the latest package from NuGet? |
@mlorbetske |
This commit brings changes from aspnet/Templates#592 to web project template. The Gulp, Grunt options are removed with NPM support removal. Thanks!
Afte adding Bundler support from aspnet/Templates#592 the --grunt option has no purpose
* Introduce Bundler to web basic (StarterWeb) template This commit brings changes from aspnet/Templates#592 to starter web project template. The Gulp, Grunt options are removed with NPM support removal. Thanks! * ⬆️ Update Bundler version The 2.0.208 fixes *nix paths problem * Add missing Bundle to Semantic UI overrides * Set post-install of NPM to false * Fix output path names
This commit brings changes from aspnet/Templates#592 to web project template. The Gulp, Grunt options are removed with NPM support removal. Thanks!
Afte adding Bundler support from aspnet/Templates#592 the --grunt option has no purpose
this is wrong, We need Gulp functionalities !! you must follow OSS trends |
More details on using the BundlerMinifier here https://github.com/madskristensen/BundlerMinifier/wiki |
thanx @peterblazejewicz , but I saw this episode before, but I dont understand why they remove Gulp and some other good Tools !! |
you can still use gulp if you like. it has only been removed from the default template |
@ikourfaln I'm afraid they have received negative feedback from C# dev about Gulp and other tools. I can tell this from my work experience (most of other devs never used Gulp/Grunt/etc) but did used some kind of tool integrated with VS, so Bundler in my opinion is some kind of trade-off. That's quite easy to replace it back with Gulp or other tool (I have this already in a project taken from other developer written with Polymer library - the Bundler didn't cut). |
…nifier tool.
//cc @madskristensen @mlorbetske @sayedihashimi @joeloff