mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
16c8b86241
Former-commit-id: 25adf086ba5834e03e88de4c2d15df247de01ba6 [formerly 1f9229558908f1077bfd79d7c4aabff447985784] [formerly 0741c0f731e538fea85fa5ca47792e5f252af5b2 [formerly 114ee2f9a2
]]
Former-commit-id: 1f3dbc3d9d57a9ba4f36e8fd621a8f12e297473b [formerly d0a5aaf28933ab24100b4b266b9d78e710e34215]
Former-commit-id: 62187ca89633afeb47f854efa86fc90bc5076c56
36 lines
849 B
JavaScript
36 lines
849 B
JavaScript
require('./check-versions')()
|
|
|
|
process.env.NODE_ENV = 'development'
|
|
|
|
var rm = require('rimraf')
|
|
var path = require('path')
|
|
var chalk = require('chalk')
|
|
var webpack = require('webpack')
|
|
var config = require('./config')
|
|
var webpackConfig = require('./webpack.dev.conf')
|
|
var fs = require('fs')
|
|
|
|
if (fs.existsSync('./rice-box.go')) {
|
|
fs.unlinkSync('./rice-box.go')
|
|
}
|
|
|
|
if (fs.existsSync('./plugins/rice-box.go')) {
|
|
fs.unlinkSync('./plugins/rice-box.go')
|
|
}
|
|
|
|
rm(path.join(config.assetsRoot, config.assetsSubDirectory), err => {
|
|
if (err) throw err
|
|
webpack(webpackConfig, function (err, stats) {
|
|
if (err) throw err
|
|
process.stdout.write(stats.toString({
|
|
colors: true,
|
|
modules: false,
|
|
children: false,
|
|
chunks: false,
|
|
chunkModules: false
|
|
}) + '\n\n')
|
|
|
|
console.log(chalk.cyan(' Build complete.\n'))
|
|
})
|
|
})
|