Created
April 15, 2014 07:17
-
-
Save leeight/10709729 to your computer and use it in GitHub Desktop.
app/ecom/fe/trunk/vs-mid-edu/wap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/wap/edp-build-config.js b/wap/edp-build-config.js | |
index 023e8f5..8a376e9 100644 | |
--- a/wap/edp-build-config.js | |
+++ b/wap/edp-build-config.js | |
@@ -3,53 +3,30 @@ exports.input = __dirname; | |
var path = require( 'path' ); | |
exports.output = path.resolve( __dirname, 'output' ); | |
-var moduleEntries = 'html,htm,phtml,tpl,vm,js'; | |
-var pageEntries = 'html,htm,phtml,tpl,vm'; | |
- | |
exports.getProcessors = function () { | |
return [ | |
- new LessCompiler( { | |
- exclude: [], | |
- entryExtnames: pageEntries, | |
- compileOptions: { | |
- compress: false | |
- } | |
- } ), | |
+ new LessCompiler(), | |
new CssCompressor(), | |
- new ModuleCompiler( { | |
- exclude: [], | |
- configFile: 'module.conf', | |
- entryExtnames: moduleEntries | |
- } ), | |
- new JsCompressor(), | |
- new PathMapper( { | |
- replacements: [ | |
- { type: 'html', tag: 'link', attribute: 'href', extnames: pageEntries }, | |
- { type: 'html', tag: 'img', attribute: 'src', extnames: pageEntries }, | |
- { type: 'html', tag: 'script', attribute: 'src', extnames: pageEntries }, | |
- { extnames: moduleEntries, replacer: 'module-config' }, | |
- { extnames: 'css,less', replacer: 'css' } | |
- ], | |
- from: 'src', | |
- to: 'asset' | |
- } ) | |
+ new ModuleCompiler(), | |
+ new JsCompressor(), | |
+ new PathMapper() | |
]; | |
}; | |
exports.exclude = [ | |
- '/tool', | |
- '/doc', | |
- '/test', | |
- '/module.conf', | |
- '/dep/packages.manifest', | |
- '/dep/*/*/test', | |
- '/dep/*/*/doc', | |
- '/dep/*/*/demo', | |
- '/dep/*/*/tool', | |
- '/dep/*/*/*.md', | |
- '/dep/*/*/package.json', | |
- '/edp-*', | |
- '/.edpproj', | |
+ 'tool', | |
+ 'doc', | |
+ 'test', | |
+ 'module.conf', | |
+ 'dep/packages.manifest', | |
+ 'dep/*/*/test', | |
+ 'dep/*/*/doc', | |
+ 'dep/*/*/demo', | |
+ 'dep/*/*/tool', | |
+ 'dep/*/*/*.md', | |
+ 'dep/*/*/package.json', | |
+ 'edp-*', | |
+ '.edpproj', | |
'.svn', | |
'.git', | |
'.gitignore', |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment