Move CSS, JS and fonts

This commit is contained in:
Oliver Davies 2018-10-27 20:05:16 +01:00
parent cfdef969aa
commit 5a09dcdb19
3 changed files with 9 additions and 7 deletions

4
.gitignore vendored
View file

@ -1,5 +1,7 @@
/mix-manifest.json
/node_modules/
/output_*/
/source/dist/
/source/css/
/source/fonts/
/source/js/
/vendor/

View file

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

View file

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