swint-builder-polymer
v2.2.10
Published
Polymer web component builder for Swint
Downloads
129
Readme
swint-builder-polymer
Polymer web copmonent builder for Swint
Warning: This is not the final draft yet, so do not use this until its official version is launched
Installation
$ npm install --save swint-builder-polymer
Options
name
:String
, default:Project
inDir
:String
, default:path.dirname(require.main.filename)
imgMetaDir
:String
, default:path.join(path.dirname(require.main.filename), '../imgMeta')
outDir
:String
, default:path.join(path.dirname(require.main.filename), '../out')
variables
:Object
, default:{}
Usage
buildPolymer({
name: 'Test',
inDir: path.join(__dirname, 'elements', 'target'),
imgMetaDir: path.join(__dirname, 'imgMeta'),
outDir: path.join(__dirname, 'out'),
variables: {}
}, function() {
// Build complete
});
Disclaimer
- You should write your code like
<img source="...">
instead of<img src="...">
in order to usesrc
attribute in HTML due to the path processing in vulcanize. - If you do not want this, you can either write like
<link rel="import" href="path/to/img.svg">
.