diff --git a/bro.zip b/bro.zip new file mode 100644 index 0000000..933ca69 Binary files /dev/null and b/bro.zip differ diff --git a/ijl.config.js b/ijl.config.js index bf79ba8..09917b1 100644 --- a/ijl.config.js +++ b/ijl.config.js @@ -1,17 +1,32 @@ -const pkg = require('./package') +const pkg = require('./package'); +const HtmlWebpackPlugin = require('html-webpack-plugin'); +const webpack = require('webpack'); + +const isProd = process.env.NODE_ENV === 'production'; module.exports = { apiPath: 'stubs/api', + apps: { + main: { + version: 'master', + name: 'cleanName', + }, +}, webpackConfig: { output: { - publicPath: `/static/${pkg.name}/${process.env.VERSION || pkg.version}/` - } + publicPath: isProd + ? '/' + : `/static/${pkg.name}/${process.env.VERSION || pkg.version}/`, + }, + plugins: [ + new HtmlWebpackPlugin({}), + new webpack.DefinePlugin({ + IS_PROD: process.env.NODE_ENV === 'production', + }), + ], }, /* use https://kc.admin.inno-js.ru/ to create config, navigations and features */ - navigations: { - }, - features: { - }, - config: { - } -} + navigations: {}, + features: {}, + config: {}, +};