From 8fc7867a1a08f7afa1dcd9258b1b14b520e999a8 Mon Sep 17 00:00:00 2001 From: Nabil Adouani Date: Tue, 9 Oct 2018 15:36:30 +0200 Subject: [PATCH] #140 Update the front end to allow custom context for cortex --- www/config/webpack/environments/development.js | 4 ++-- www/config/webpack/environments/production.js | 6 +++--- www/src/tpl-index.ejs | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/www/config/webpack/environments/development.js b/www/config/webpack/environments/development.js index bf4994a25..d5ea55427 100644 --- a/www/config/webpack/environments/development.js +++ b/www/config/webpack/environments/development.js @@ -1,7 +1,7 @@ 'use strict'; let webpack = require('webpack'); -module.exports = function(_path) { +module.exports = function (_path) { return { context: _path, devtool: 'source-map', @@ -15,4 +15,4 @@ module.exports = function(_path) { }, plugins: [new webpack.HotModuleReplacementPlugin()] }; -}; +}; \ No newline at end of file diff --git a/www/config/webpack/environments/production.js b/www/config/webpack/environments/production.js index dd1dede4e..7a3e41eac 100644 --- a/www/config/webpack/environments/production.js +++ b/www/config/webpack/environments/production.js @@ -2,12 +2,12 @@ let CleanWebpackPlugin = require('clean-webpack-plugin'); let webpack = require('webpack'); -module.exports = function(_path) { +module.exports = function (_path) { return { context: _path, devtool: 'source-map', output: { - publicPath: '/', + publicPath: './', filename: '[name].[chunkhash].js' }, plugins: [ @@ -23,4 +23,4 @@ module.exports = function(_path) { }) ] }; -}; +}; \ No newline at end of file diff --git a/www/src/tpl-index.ejs b/www/src/tpl-index.ejs index fd0e7622e..a5f414533 100755 --- a/www/src/tpl-index.ejs +++ b/www/src/tpl-index.ejs @@ -5,11 +5,11 @@ Cortex - - - - - + + + + + <% for(var i=0; i < htmlWebpackPlugin.files.css; i++) { %>