minified build
This commit is contained in:
parent
12fe6dfa17
commit
20829961d8
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() {
|
||||
const css = fs.readFileSync('./src/css/component-min.css');
|
||||
const html = fs.readFileSync('./src/html/component-min.html');
|
||||
return (
|
||||
src('./src/js/mailymaily.js')
|
||||
.pipe(replace(/___css_inserter___/g, css))
|
||||
.pipe(replace(/___html_inserter___/g, html))
|
||||
// .pipe(minify({ noSource: true }))
|
||||
.pipe(dest('./dist'))
|
||||
);
|
||||
return src('./src/js/mailymaily.js')
|
||||
.pipe(replace(/___css_inserter___/g, css))
|
||||
.pipe(replace(/___html_inserter___/g, html))
|
||||
.pipe(minify({ noSource: true }))
|
||||
.pipe(dest('./dist'));
|
||||
}
|
||||
function clean() {
|
||||
return del([ './src/html/component-min.html', './src/css/' ]);
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
<body>
|
||||
<h1>mailymaily-sample</h1>
|
||||
<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>
|
||||
</html>
|
Loading…
Reference in New Issue