Move CSS, JS and fonts
This commit is contained in:
parent
cfdef969aa
commit
5a09dcdb19
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,5 +1,7 @@
|
|||
/mix-manifest.json
|
||||
/node_modules/
|
||||
/output_*/
|
||||
/source/dist/
|
||||
/source/css/
|
||||
/source/fonts/
|
||||
/source/js/
|
||||
/vendor/
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<title>{{ helpers.htmlTitle(site, page) }}</title>
|
||||
{% include 'meta' %}
|
||||
|
||||
<link rel="stylesheet" href="/dist/css/app.css">
|
||||
<link rel="stylesheet" href="/css/app.css">
|
||||
{% block stylesheets %}{% endblock %}
|
||||
|
||||
{% for size in site.apple_touch_icon_sizes %}
|
||||
|
@ -71,7 +71,7 @@
|
|||
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
|
||||
{% endif %}
|
||||
|
||||
<script src="/dist/js/all.js"></script>
|
||||
<script src="/js/all.js"></script>
|
||||
{% block scripts %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,13 +4,13 @@ require('laravel-mix-purgecss');
|
|||
require('laravel-mix-tailwind');
|
||||
|
||||
mix.disableNotifications()
|
||||
.postCss('assets/css/app.css', 'source/dist/css')
|
||||
.postCss('assets/css/app.css', 'source/css')
|
||||
.js([
|
||||
// 'node_modules/highlightjs/highlight.pack.js',
|
||||
'node_modules/jquery/dist/jquery.js',
|
||||
'node_modules/jquery/src/jquery.js',
|
||||
'assets/js/app.js',
|
||||
], 'source/dist/js/all.js')
|
||||
.copyDirectory('node_modules/font-awesome/fonts', 'source/dist/fonts')
|
||||
], 'source/js/all.js')
|
||||
.copyDirectory('node_modules/font-awesome/fonts', 'source/fonts')
|
||||
.tailwind()
|
||||
.purgeCss({
|
||||
globs: [
|
||||
|
|
Reference in a new issue