🌑 Darkmode cleanup
This commit is contained in:
parent
8b972c97a5
commit
52e0cb0806
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -33,7 +33,6 @@
|
||||||
<a class="dark" href="#mailgo" data-tel="123456568" data-telegram="telegram">chiamami dark mode</a>
|
<a class="dark" href="#mailgo" data-tel="123456568" data-telegram="telegram">chiamami dark mode</a>
|
||||||
|
|
||||||
<script src="./dist/mailgo.min.js"></script>
|
<script src="./dist/mailgo.min.js"></script>
|
||||||
<script src="./dist/mailgo.dark.min.js"></script>
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
|
@ -41,23 +41,5 @@ module.exports = [
|
||||||
libraryTarget: 'window',
|
libraryTarget: 'window',
|
||||||
path: path.resolve(__dirname, 'dist')
|
path: path.resolve(__dirname, 'dist')
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
mode: 'production',
|
|
||||||
target: 'web',
|
|
||||||
entry: './mailgo.dist.dark.ts',
|
|
||||||
context: path.join(__dirname, 'webpack'),
|
|
||||||
module: {
|
|
||||||
rules: mailgoRules
|
|
||||||
},
|
|
||||||
resolve: {
|
|
||||||
extensions: [ '.ts', '.js' ]
|
|
||||||
},
|
|
||||||
output: {
|
|
||||||
filename: 'mailgo.dark.min.js',
|
|
||||||
library: 'mailgo',
|
|
||||||
libraryTarget: 'window',
|
|
||||||
path: path.resolve(__dirname, 'dist')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
import mailgo from '../src/mailgo';
|
|
||||||
|
|
||||||
// call init mailgo attached to the event DOMContentLoaded
|
|
||||||
const mailgoConfig = {
|
|
||||||
initEvent: 'DOMContentLoaded',
|
|
||||||
dark: true
|
|
||||||
};
|
|
||||||
|
|
||||||
mailgo(mailgoConfig);
|
|
Loading…
Reference in New Issue