diff --git a/package.json b/package.json
index 511f706..ede6032 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,6 @@
"dependencies": {
"@babel/polyfill": "^7.2.5",
"axios": "^0.18.0",
- "jquery": "^3.3.1",
"lazysizes": "^4.1.5",
"picturefill": "^3.0.3",
"vue": "^2.5.21"
diff --git a/src/js/setup/jquery.js b/src/js/setup/jquery.js
deleted file mode 100644
index edd6d65..0000000
--- a/src/js/setup/jquery.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import jQuery from 'jquery';
-
-window.$ = window.jQuery = jQuery;
diff --git a/src/js/site.js b/src/js/site.js
index 93c4a97..0ebebcb 100644
--- a/src/js/site.js
+++ b/src/js/site.js
@@ -3,5 +3,4 @@ require("lazysizes");
require("./vendor/ls.blur-up.min.js");
import './setup/axios';
-import './setup/jquery';
import './setup/vue';
diff --git a/templates/_layouts/page.twig b/templates/_layouts/page.twig
index 5c5caea..1b4869d 100755
--- a/templates/_layouts/page.twig
+++ b/templates/_layouts/page.twig
@@ -15,11 +15,11 @@
{% set inline_css = block("inline_css") %}
{% if inline_css|trim is not empty %}
-
-
+
+
{% else %}
-
+
{% endif %}
{%- minify -%}
@@ -80,7 +80,9 @@
{# -- Scripts -- #}
-
+
+
+
{# -- Inline JS -- #}
{% block inline_js %}
diff --git a/webpack.mix.js b/webpack.mix.js
index e29f18a..7a2b617 100644
--- a/webpack.mix.js
+++ b/webpack.mix.js
@@ -4,8 +4,8 @@ let mix = require('laravel-mix');
require("laravel-mix-purgecss");
mix
- .js('src/js/site.js', './web/dist')
- .postCss('src/css/site.css', './web/dist')
+ .js('src/js/site.js', './web/dist/js')
+ .postCss('src/css/site.css', './web/dist/css')
.setPublicPath('./web/dist')
@@ -27,22 +27,17 @@ mix
processCssUrls: false,
})
+ .sourceMaps()
+
.version()
- .babelConfig({
- plugins: ['@babel/syntax-dynamic-import'],
- })
+ .extract()
- .webpackConfig({
- output: {
- // The public path needs to be set to the root of the site so
- // Webpack can locate chunks at runtime.
- publicPath: '/',
+ .autoload({
+ })
- // We'll place all chunks in the `js` folder by default so we don't
- // need to worry about ignoring them in our version control system.
- chunkFilename: 'js/[name].js',
- },
+ .babelConfig({
+ plugins: ['@babel/syntax-dynamic-import'],
})
.purgeCss({
diff --git a/yarn.lock b/yarn.lock
index 1944a03..01d1077 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3479,11 +3479,6 @@ isobject@^3.0.0, isobject@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df"
-jquery@^3.3.1:
- version "3.3.1"
- resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.3.1.tgz#958ce29e81c9790f31be7792df5d4d95fc57fbca"
- integrity sha512-Ubldcmxp5np52/ENotGxlLe6aGMvmF4R8S6tZjsP6Knsaxd/xp3Zrh50cG93lR6nPXyUFwzN3ZSOQI0wRJNdGg==
-
js-base64@^2.1.9:
version "2.5.0"
resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.5.0.tgz#42255ba183ab67ce59a0dee640afdc00ab5ae93e"