mirror of
https://github.com/ansible/awx.git
synced 2026-03-28 14:25:05 -02:30
load migrations page in dev environment
This commit is contained in:
@@ -27,6 +27,8 @@ const APP_ENTRY = path.join(SRC_PATH, 'app.js');
|
|||||||
const VENDOR_ENTRY = path.join(SRC_PATH, 'vendor.js');
|
const VENDOR_ENTRY = path.join(SRC_PATH, 'vendor.js');
|
||||||
const INDEX_ENTRY = path.join(CLIENT_PATH, 'index.template.ejs');
|
const INDEX_ENTRY = path.join(CLIENT_PATH, 'index.template.ejs');
|
||||||
const INDEX_OUTPUT = path.join(UI_PATH, 'templates/ui/index.html');
|
const INDEX_OUTPUT = path.join(UI_PATH, 'templates/ui/index.html');
|
||||||
|
const INSTALL_RUNNING_ENTRY = path.join(CLIENT_PATH, 'installing.template.ejs');
|
||||||
|
const INSTALL_RUNNING_OUTPUT = path.join(UI_PATH, 'templates/ui/installing.html');
|
||||||
const THEME_ENTRY = path.join(LIB_PATH, 'theme', 'index.less');
|
const THEME_ENTRY = path.join(LIB_PATH, 'theme', 'index.less');
|
||||||
const OUTPUT = 'js/[name].[chunkhash].js';
|
const OUTPUT = 'js/[name].[chunkhash].js';
|
||||||
const CHUNKS = ['vendor', 'app'];
|
const CHUNKS = ['vendor', 'app'];
|
||||||
@@ -193,7 +195,15 @@ const base = {
|
|||||||
inject: false,
|
inject: false,
|
||||||
chunks: CHUNKS,
|
chunks: CHUNKS,
|
||||||
chunksSortMode: chunk => (chunk.names[0] === 'vendor' ? -1 : 1)
|
chunksSortMode: chunk => (chunk.names[0] === 'vendor' ? -1 : 1)
|
||||||
})
|
}),
|
||||||
|
new HtmlWebpackPlugin({
|
||||||
|
alwaysWriteToDisk: true,
|
||||||
|
template: INSTALL_RUNNING_ENTRY,
|
||||||
|
filename: INSTALL_RUNNING_OUTPUT,
|
||||||
|
inject: false,
|
||||||
|
chunks: CHUNKS,
|
||||||
|
chunksSortMode: chunk => (chunk.names[0] === 'vendor' ? -1 : 1)
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
|
|||||||
@@ -9,8 +9,6 @@ const base = require('./webpack.base');
|
|||||||
|
|
||||||
const CLIENT_PATH = path.resolve(__dirname, '../client');
|
const CLIENT_PATH = path.resolve(__dirname, '../client');
|
||||||
const UI_PATH = path.resolve(__dirname, '..');
|
const UI_PATH = path.resolve(__dirname, '..');
|
||||||
const INSTALL_RUNNING_ENTRY = path.join(CLIENT_PATH, 'installing.template.ejs');
|
|
||||||
const INSTALL_RUNNING_OUTPUT = path.join(UI_PATH, 'templates/ui/installing.html');
|
|
||||||
const CHUNKS = ['vendor', 'app'];
|
const CHUNKS = ['vendor', 'app'];
|
||||||
|
|
||||||
const production = {
|
const production = {
|
||||||
@@ -19,14 +17,6 @@ const production = {
|
|||||||
compress: true,
|
compress: true,
|
||||||
mangle: false
|
mangle: false
|
||||||
}),
|
}),
|
||||||
new HtmlWebpackPlugin({
|
|
||||||
alwaysWriteToDisk: true,
|
|
||||||
template: INSTALL_RUNNING_ENTRY,
|
|
||||||
filename: INSTALL_RUNNING_OUTPUT,
|
|
||||||
inject: false,
|
|
||||||
chunks: CHUNKS,
|
|
||||||
chunksSortMode: chunk => (chunk.names[0] === 'vendor' ? -1 : 1)
|
|
||||||
}),
|
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
'process.env': {
|
'process.env': {
|
||||||
NODE_ENV: JSON.stringify('production')
|
NODE_ENV: JSON.stringify('production')
|
||||||
|
|||||||
Reference in New Issue
Block a user