/
githubmirror
/
browser-extension
Обзор
Документация
Войти
/
githubmirror
/
browser-extension
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
utils/build.js
15 строк
392 B
lxieyang
fix ASSET_PATH for webpack 5
27 окт 2020, 22:27
27 окт 2020, 22:27
841fa0a
Код
Авторство
О чём код?
// Do this as the first thing so that any code reading it knows the right env. process.env.BABEL_ENV = 'production'; process.env.NODE_ENV = 'production'; process.env.ASSET_PATH = '/'; var webpack = require('webpack'), config = require('../webpack.config'); delete config.chromeExtensionBoilerplate; config.mode = 'production'; webpack(config, function (err) { if (err) throw err; });