Merge branch 'master' of gitlab.com:odit.services/mailymaily
# Conflicts: # dist/mailymaily.js
This commit is contained in:
commit
196d6254cb
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
12
gulpfile.js
12
gulpfile.js
|
@ -26,13 +26,11 @@ function css() {
|
||||||
function js() {
|
function js() {
|
||||||
const css = fs.readFileSync('./src/css/component-min.css');
|
const css = fs.readFileSync('./src/css/component-min.css');
|
||||||
const html = fs.readFileSync('./src/html/component-min.html');
|
const html = fs.readFileSync('./src/html/component-min.html');
|
||||||
return (
|
return src('./src/js/mailymaily.js')
|
||||||
src('./src/js/mailymaily.js')
|
.pipe(replace(/___css_inserter___/g, css))
|
||||||
.pipe(replace(/___css_inserter___/g, css))
|
.pipe(replace(/___html_inserter___/g, html))
|
||||||
.pipe(replace(/___html_inserter___/g, html))
|
.pipe(minify({ noSource: true }))
|
||||||
// .pipe(minify({ noSource: true }))
|
.pipe(dest('./dist'));
|
||||||
.pipe(dest('./dist'))
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
function clean() {
|
function clean() {
|
||||||
return del([ './src/html/component-min.html', './src/css/' ]);
|
return del([ './src/html/component-min.html', './src/css/' ]);
|
||||||
|
|
|
@ -10,6 +10,6 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>mailymaily-sample</h1>
|
<h1>mailymaily-sample</h1>
|
||||||
<a href="mailto:info@odit.services" target="_blank" rel="noopener noreferrer" class="mailymaily">info@odit.services</a>
|
<a href="mailto:info@odit.services" target="_blank" rel="noopener noreferrer" class="mailymaily">info@odit.services</a>
|
||||||
<script src="./dist/mailymaily.js"></script>
|
<script src="./dist/mailymaily-min.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue