vuetify-loader
Advanced tools
Comparing version 1.7.1 to 1.7.2
@@ -56,3 +56,3 @@ var path = require('path') | ||
loader: 'url-loader', | ||
options: { limit: 8000 } | ||
options: { limit: 1024 } | ||
} | ||
@@ -59,0 +59,0 @@ ] |
{ | ||
"name": "vuetify-loader", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"description": "A Webpack plugin for treeshaking Vuetify components and more", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -21,6 +21,6 @@ const loaderUtils = require('loader-utils') | ||
/** @see https://github.com/zouhir/lqip-loader */ | ||
const contentIsUrlExport = /^export default "data:(.*)base64,(.*)/.test( | ||
const contentIsUrlExport = /^(export default|module.exports =) "data:(.*)base64,(.*)/.test( | ||
content | ||
) | ||
const contentIsFileExport = /^export default (.*)/.test(content) | ||
const contentIsFileExport = /^(export default|module.exports =) (.*)/.test(content) | ||
let source = '' | ||
@@ -36,3 +36,3 @@ | ||
} | ||
source = content.match(/^export default (.*);/)[1] | ||
source = content.match(/^(?:export default|module.exports =) (.*);/)[1] | ||
} | ||
@@ -47,3 +47,3 @@ | ||
null, | ||
`export default {src:${source},` + JSON.stringify(result).slice(1) | ||
`module.exports = {src:${source},` + JSON.stringify(result).slice(1) | ||
) | ||
@@ -50,0 +50,0 @@ } |
@@ -32,3 +32,3 @@ const { hyphenate } = require('../lib/util') | ||
} | ||
return `require("${url}?vuetify-preload").default` | ||
return `require("${url}?vuetify-preload")` | ||
} else { | ||
@@ -35,0 +35,0 @@ return `"${url}"` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39040