4.0.1 • Published 3 years ago
gulp-compo-autoprefixer v4.0.1
gulp-compo-autoprefixer
Gulp plugin for using the Autoprefixer in CompoJS
Install
npm i gulp-compo-autoprefixer -D
Using
const compoAutoprefixer = require('gulp-compo-autoprefixer')
function components() {
return gulp.src('src/components/**/*.htm')
.pipe(compoAutoprefixer())
.pipe(concat('components.htm'))
.pipe(gulp.dest('dist'))
}
// or
function components() {
return gulp.src('src/components/**/*.htm')
.pipe(compoAutoprefixer({
overrideBrowserslist: ['last 15 versions']
}))
.pipe(concat('components.htm'))
.pipe(gulp.dest('dist'))
}
Example
source
<c-component1>
<h1>${ message }</h1>
<style>
:host {
display: flex;
}
</style>
<script>
this.message = 'Компонент 1'
</script>
</c-component1>
output
<c-component1>
<h1>${ message }</h1>
<style>
:host {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
</style>
<script>
this.message = 'Компонент 1'
</script>
</c-component1>
Author
Contacts
4.0.1
3 years ago
4.0.0
3 years ago
3.5.7
3 years ago
3.5.8
3 years ago
3.5.6
3 years ago
3.5.3
3 years ago
3.5.2
3 years ago
3.5.1
3 years ago
3.5.0
3 years ago
3.4.2
3 years ago
3.4.1
3 years ago
3.4.0
3 years ago
3.3.2
3 years ago
3.2.2
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago