Update dom101 to fix problem with lodash page

This commit is contained in:
Rico Sta. Cruz 2017-10-17 11:42:07 +08:00
parent 428b5bfc11
commit 8de1797cd1
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
9 changed files with 59 additions and 19 deletions

View File

@ -1,5 +1,41 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`h2 + pre 1`] = `
<div>
<div
class="h2-section"
>
<h2>
heading
</h2>
<div
class="body h3-section-list"
data-js-h3-section-list=""
>
<div
class="h3-section language-markdown"
>
<div
class="body language-markdown"
>
<pre
class="language-markdown"
>
(code)
</pre>
</div>
</div>
</div>
</div>
</div>
`;
exports[`h3 with class 1`] = `
<div>

View File

@ -54,3 +54,10 @@ function run (input, fn) {
if (fn) fn($div)
}
}
it('h2 + pre', run(`
<div>
<h2>heading</h2>
<pre class='language-markdown'>(code)</pre>
</div>
`))

View File

@ -1,6 +1,5 @@
const join = require('path').resolve
const webpack = require('webpack')
const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
module.exports = {
context: join(__dirname, '..'),
@ -27,7 +26,8 @@ module.exports = {
},
output: {
path: join(__dirname, '..', 'assets', 'packed'),
filename: '[name].js'
filename: '[name].js',
devtoolModuleFilenameTemplate: 'webpack:///[absolute-resource-path]'
},
module: {
rules: [
@ -68,14 +68,7 @@ module.exports = {
// Don't include debug symbols ever
new webpack.EnvironmentPlugin({
NODE_ENV: 'production'
}),
// Always minify, even in development.
new UglifyJSPlugin({
uglifyOptions: {
compress: true,
mangle: true
}
})
]
],
devtool: 'source-map'
}

File diff suppressed because one or more lines are too long

1
assets/packed/app.js.map Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -33,7 +33,7 @@
},
"dependencies": {
"babel-polyfill": "6.26.0",
"dom101": "2.1.0",
"dom101": "2.2.1",
"hint.css": "2.5.0",
"isotope-layout": "3.0.4",
"jquery": "3.2.1",

View File

@ -1720,9 +1720,9 @@ doctrine@^2.0.0:
esutils "^2.0.2"
isarray "^1.0.0"
dom101@2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/dom101/-/dom101-2.1.0.tgz#45fcee0100e078591696bec6e75276b5d03c0b5c"
dom101@2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/dom101/-/dom101-2.2.1.tgz#16bdf36daf58a5846f72f3d8e48ba0ec1b186330"
domain-browser@^1.1.1:
version "1.1.7"