mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-13 05:31:37 +08:00
Upgrade to webpack 2 and babel 6
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ module.exports = function(grunt) {
|
||||
var code = fs.readFileSync('dist/quagga.js', 'utf-8'),
|
||||
minifiedCode = fs.readFileSync('dist/quagga.min.js', 'utf-8'),
|
||||
commentEnd = '/* @preserve ASM END */',
|
||||
moduleFunctionRegex = /function\s*\((\w+,\s*\w+)\)\s*\{\s*\/\* \@preserve ASM BEGIN \*\//,
|
||||
moduleFunctionRegex = /function\s*\((\w+,\s*\w+,\s*\w+)\)\s*\{\s*\/\* \@preserve ASM BEGIN \*\//,
|
||||
commentStartIdx = code.indexOf("/* @preserve ASM BEGIN */"),
|
||||
asmEndIdxTmp = code.indexOf(commentEnd),
|
||||
asmEndIdx = code.indexOf("}", asmEndIdxTmp),
|
||||
|
||||
Reference in New Issue
Block a user