Nagaraj4
(Nagaraj RC)
April 30, 2016, 7:23am
1
Hi am using Vaadin 7.6.5 version
when i set productionMode=true in web.xml
i am getting the following error
Apr 30, 2016 12:36:08 PM com.vaadin.server.VaadinServlet serveOnTheFlyCompiledScss
INFO: Request for /VAADIN/themes/vegatheme/styles.css not handled by sass compiler while in production mode
Here is my
web.xml
Vaadin production mode
productionMode
true
My
pom.xml
is
As i understood from the documents in below link
https://vaadin.com/docs/-/part/framework/themes/themes-compiling.html
org.apache.maven.plugins
maven-jar-plugin
${maven-jar-plugin-version}
jar
org.apache.maven.plugins
maven-compiler-plugin
1.8
1.8
com.vaadin
vaadin-maven-plugin
${vaadin.plugin.version}
-Xmx512M -Xss1024k
${basedir}/target/classes/VAADIN/widgetsets
false
false
OBF
true
update-theme
update-widgetset
compile
compile-theme
${outputDirec}/dist
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings
only. It has no influence on the Maven build itself. -->
<!-- TODO Remove when http://dev.vaadin.com/ticket/14924 is resolved -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>com.vaadin</groupId>
<artifactId>
vaadin-maven-plugin
</artifactId>
<versionRange>[7.1.11,)</versionRange>
<goals>
<goal>update-theme</goal>
<goal>resources</goal>
<goal>update-widgetset</goal>
<goal>compile</goal>
<goal>compile-theme</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>P
</pluginManagement>
</build>
where i am missing
Thanks
Nagaraj RC
The theme is compiled on the fly in “development mode”, but in “production mode” you need to compile your SASS theme.
Check this thread
.