mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
build/*.js: es6ify. (#24611)
This commit is contained in:
parent
0570087ac3
commit
271f5071a3
3 changed files with 5 additions and 5 deletions
|
@ -39,9 +39,9 @@ module.exports = {
|
||||||
format: 'iife'
|
format: 'iife'
|
||||||
},
|
},
|
||||||
name: 'bootstrap',
|
name: 'bootstrap',
|
||||||
external: external,
|
external,
|
||||||
globals: globals,
|
globals,
|
||||||
plugins: plugins,
|
plugins,
|
||||||
banner: `/*!
|
banner: `/*!
|
||||||
* Bootstrap v${pkg.version} (${pkg.homepage})
|
* Bootstrap v${pkg.version} (${pkg.homepage})
|
||||||
* Copyright 2011-${year} ${pkg.author}
|
* Copyright 2011-${year} ${pkg.author}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
const childProcess = require('child_process')
|
const childProcess = require('child_process')
|
||||||
const vnu = require('vnu-jar')
|
const vnu = require('vnu-jar')
|
||||||
|
|
||||||
childProcess.exec('java -version', function (error) {
|
childProcess.exec('java -version', (error) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error('Skipping HTML lint test; Java is missing.')
|
console.error('Skipping HTML lint test; Java is missing.')
|
||||||
return
|
return
|
||||||
|
|
|
@ -8,7 +8,7 @@ const buildPrefix = '_gh_pages/'
|
||||||
|
|
||||||
const workboxSWSrcPath = require.resolve('workbox-sw')
|
const workboxSWSrcPath = require.resolve('workbox-sw')
|
||||||
const wbFileName = path.basename(workboxSWSrcPath)
|
const wbFileName = path.basename(workboxSWSrcPath)
|
||||||
const workboxSWDestPath = buildPrefix + 'assets/js/vendor/' + wbFileName
|
const workboxSWDestPath = `${buildPrefix}assets/js/vendor/${wbFileName}`
|
||||||
const workboxSWSrcMapPath = `${workboxSWSrcPath}.map`
|
const workboxSWSrcMapPath = `${workboxSWSrcPath}.map`
|
||||||
const workboxSWDestMapPath = `${workboxSWDestPath}.map`
|
const workboxSWDestMapPath = `${workboxSWDestPath}.map`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue