Just a slight clarification on the syntax. I think the maven command is: 

mvn clean install -P!minify-and-compress

But you may need to escape the ! So you may need to run 

mvn clean install -P\!minify-and-compress

Thanks
-Mark

Sent from my iPhone

> On Dec 22, 2021, at 10:03 AM, Matt Gilman <[email protected]> wrote:
> 
> Hi Roy,
> 
> By default, the maven build will minify and aggregate all the front-end
> resources. There is a profile that you can (de)activate to instead bundle
> the resources as they are in the source. This should look something like:
> 
> mvn clean install -P-minify-and-compress
> 
> When running the resulting build you should be able to inspect things with
> DevTools and set breakpoints in the debugger. Subsequent iterations can be
> made faster by only building the necessary modules needed to bundle a new
> front-end. Specifically, that is nifi-web-ui (don't forget to deactivate
> minify-and-compress) and nifi-server-nar. The resulting NAR from the target
> directory in nifi-server-nar will need to be copied to the lib directory of
> your previously built assembly.
> 
> Unfortunately, there is no way to run just the front-end in a dev server
> decoupled from the backed. The NiFi front-end sources are in JSPs which
> generate markup server side.
> 
> Hope this helps.
> 
> Matt
> 
>> On Tue, Dec 21, 2021 at 10:24 PM Roy Huang <[email protected]> wrote:
>> 
>> Hi everyone
>> 
>> I want to modify some css style in nifi, but I don't know how to run it in
>> a dev environment, can you help me with that? I'm a front-end developer and
>> don't know about java maven.
>> 

Reply via email to