Trim some more 3rd-party deps
This commit is contained in:
parent
ede8f1c999
commit
431881414f
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"presets": [
|
||||
[
|
||||
"env",
|
||||
{
|
||||
"forceAllTransforms": true
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
|
@ -8,16 +8,7 @@
|
|||
<script src='{{base}}/assets/packed/app.js?t={{ timestamp }}'></script>
|
||||
|
||||
<!-- 3rd-party libs -->
|
||||
<!-- <script src='https://code.jquery.com/jquery-3.1.0.min.js'></script> -->
|
||||
<script src='https://cdn.jsdelivr.net/npm/isotope-layout@3.0.4/dist/isotope.pkgd.min.js'></script>
|
||||
<!-- <script src='https://cdn.jsdelivr.net/npm/prismjs@1.6.0'></script> -->
|
||||
{% for lang in page.prism_languages %}
|
||||
<script src='https://cdn.jsdelivr.net/npm/prismjs@1.6.0/components/prism-{{lang}}.min.js'></script>{% endfor %}
|
||||
<script src='https://cdn.jsdelivr.net/npm/prismjs@1.6.0/plugins/line-highlight/prism-line-highlight.min.js'></script>
|
||||
|
||||
<!-- 3rd-party CSS -->
|
||||
<!-- <link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/sanitize.css@5.0.0/sanitize.css'> -->
|
||||
<!-- <link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/prismjs@1.6.0/plugins/line-highlight/prism-line-highlight.css'> -->
|
||||
{% for lang in page.prism_languages %}<script src='https://cdn.jsdelivr.net/npm/prismjs@1.6.0/components/prism-{{lang}}.min.js'></script>{% endfor %}
|
||||
|
||||
{% comment %}
|
||||
<!-- No custom fonts -->
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!-- legacy IE polyfills -->
|
||||
<script src='https://cdn.polyfill.io/v2/polyfill.min.js'></script>
|
||||
<!--[if lt IE 9]>{%comment%}
|
||||
{%endcomment%}<script src='//cdnjs.cloudflare.com/ajax/libs/nwmatcher/1.2.5/nwmatcher.min.js'></script>{%comment%}
|
||||
{%endcomment%}<script src='//cdnjs.cloudflare.com/ajax/libs/json2/20140204/json2.js'></script>{%comment%}
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
// 3rd party libs
|
||||
window.jQuery = window.$ = require('jquery')
|
||||
window.Prism = require('prismjs')
|
||||
require('prismjs/plugins/line-highlight/prism-line-highlight.min.js')
|
||||
|
||||
// CSS
|
||||
require('sanitize.css')
|
||||
require('prismjs/plugins/line-highlight/prism-line-highlight.css')
|
||||
|
||||
// Behaviors that need to go first
|
||||
require('./behaviors/main-body')
|
||||
require('hint.css/hint.min.css')
|
||||
|
||||
// All the others
|
||||
function requireAll (r) { r.keys().forEach(r) }
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
import $ from 'jquery'
|
||||
import Isotope from 'isotope-layout/dist/isotope.pkgd.js'
|
||||
|
||||
/*
|
||||
* Ensure that main-body is evaluated first
|
||||
*/
|
||||
|
||||
import './main-body'
|
||||
|
||||
/*
|
||||
* Behavior: Isotope
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
@import url('https://unpkg.com/hint.css@2.5.0/hint.min.css');
|
||||
@import url('https://fonts.googleapis.com/css?family=Cousine');
|
||||
@import './variables';
|
||||
@import '../vendor/modularscale/modularscale';
|
||||
|
|
|
@ -18,8 +18,7 @@ module.exports = {
|
|||
{ loader: 'babel-loader' }
|
||||
]
|
||||
}
|
||||
],
|
||||
rules: [
|
||||
,
|
||||
{
|
||||
test: /\.css$/,
|
||||
use: [
|
||||
|
|
|
@ -13,17 +13,14 @@
|
|||
"style-loader": "0.18.2",
|
||||
"webpack": "3.6.0"
|
||||
},
|
||||
"babel": {
|
||||
"presets": [
|
||||
"env"
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "webpack --watch --progress --colors",
|
||||
"prepublish": "webpack"
|
||||
},
|
||||
"dependencies": {
|
||||
"babel-polyfill": "6.26.0",
|
||||
"dom101": "1.3.0",
|
||||
"hint.css": "2.5.0",
|
||||
"isotope-layout": "3.0.4",
|
||||
"jquery": "3.2.1",
|
||||
"onmount": "1.3.0",
|
||||
|
|
16
yarn.lock
16
yarn.lock
|
@ -542,6 +542,14 @@ babel-plugin-transform-strict-mode@^6.24.1:
|
|||
babel-runtime "^6.22.0"
|
||||
babel-types "^6.24.1"
|
||||
|
||||
babel-polyfill@6.26.0:
|
||||
version "6.26.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153"
|
||||
dependencies:
|
||||
babel-runtime "^6.26.0"
|
||||
core-js "^2.5.0"
|
||||
regenerator-runtime "^0.10.5"
|
||||
|
||||
babel-preset-env@1.6.0:
|
||||
version "1.6.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.6.0.tgz#2de1c782a780a0a5d605d199c957596da43c44e4"
|
||||
|
@ -1618,6 +1626,10 @@ hawk@3.1.3, hawk@~3.1.3:
|
|||
hoek "2.x.x"
|
||||
sntp "1.x.x"
|
||||
|
||||
hint.css@2.5.0:
|
||||
version "2.5.0"
|
||||
resolved "https://registry.yarnpkg.com/hint.css/-/hint.css-2.5.0.tgz#38cae3667e42d91dfddbe503100ab34932f6fd65"
|
||||
|
||||
hmac-drbg@^1.0.0:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1"
|
||||
|
@ -2758,6 +2770,10 @@ regenerate@^1.2.1:
|
|||
version "1.3.3"
|
||||
resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.3.tgz#0c336d3980553d755c39b586ae3b20aa49c82b7f"
|
||||
|
||||
regenerator-runtime@^0.10.5:
|
||||
version "0.10.5"
|
||||
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658"
|
||||
|
||||
regenerator-runtime@^0.11.0:
|
||||
version "0.11.0"
|
||||
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.0.tgz#7e54fe5b5ccd5d6624ea6255c3473be090b802e1"
|
||||
|
|
Loading…
Reference in New Issue