maven js css 압축
<build>
<finalName>arts</finalName>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<!-- delete dir="${basedir}/target/" />
<mkdir dir="${basedir}/target/drift/" /> -->
<copy todir="${basedir}/target/drift/">
<fileset dir="${basedir}/drift/">
<include name="**/*.*" />
</fileset>
</copy>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>compress</goal>
</goals>
</execution>
</executions>
<configuration>
<encoding>UTF-8</encoding>
<jswarn>false</jswarn>
<!-- , , -->
<force>false</force>
<!-- , seajs false -->
<nomunge>true</nomunge>
<nosuffix>true</nosuffix>
<!-- -->
<linebreakpos>-1</linebreakpos>
<!-- , -->
<sourceDirectory>${basedir}/drift/</sourceDirectory>
<!-- js css -->
<includes>
<include>**/*.js</include>
<include>**/*.css</include>
</includes>
<!-- -->
<excludes>
<!-- , -->
<exclude>**/*.min.js</exclude>
<exclude>**/*.min.css</exclude>
<exclude>dist/js/ueditor/third-party/video-js/video.dev.js</exclude>
<exclude>script/ArtJS/lib/angular.js</exclude>
</excludes>
<!-- -->
<outputDirectory>${basedir}/target/drift</outputDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2.1</version>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<?xml version="1.0" encoding="UTF-8"?>
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>static</id>
<includeBaseDirectory>false</includeBaseDirectory>
<formats>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<directory>${basedir}/target/drift/</directory>
<outputDirectory>/drift</outputDirectory>
<excludes />
</fileSet>
<fileSet>
<includes>
<include>${basedir}/*.*</include>
<include>${basedir}/activity/**</include>
<include>${basedir}/editor/**</include>
<include>${basedir}/order/**</include>
<include>${basedir}/search/**</include>
<include>${basedir}/svg/**</include>
<include>${basedir}/user/**</include>
<include>${basedir}/userLogin/**</include>
</includes>
<excludes>
<exclude>${basedir}/.settings</exclude>
<exclude>${basedir}/.idea</exclude>
<exclude>${basedir}/drift</exclude>
</excludes>
</fileSet>
</fileSets>
</assembly>
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.