Merge branch 'master' of gitlab.com:odit.services/mailymaily

# Conflicts:
#	dist/mailymaily.js
This commit is contained in:
Nicolai Ort 2020-08-29 18:41:02 +02:00
commit 196d6254cb
4 changed files with 7 additions and 1082 deletions

File diff suppressed because one or more lines are too long

1073
dist/mailymaily.js vendored

File diff suppressed because it is too large Load Diff

View File

@ -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/' ]);

View File

@ -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>