Skip to content

Commit

Permalink
#140 Update the front end to allow custom context for cortex
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Oct 9, 2018
1 parent 1309ad8 commit 8fc7867
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions www/config/webpack/environments/development.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';
let webpack = require('webpack');

module.exports = function(_path) {
module.exports = function (_path) {
return {
context: _path,
devtool: 'source-map',
Expand All @@ -15,4 +15,4 @@ module.exports = function(_path) {
},
plugins: [new webpack.HotModuleReplacementPlugin()]
};
};
};
6 changes: 3 additions & 3 deletions www/config/webpack/environments/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -23,4 +23,4 @@ module.exports = function(_path) {
})
]
};
};
};
10 changes: 5 additions & 5 deletions www/src/tpl-index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<title>Cortex</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="icon" type="image/png" href="favicon-196x196.png" sizes="196x196" />
<link rel="icon" type="image/png" href="favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" />
<link rel="icon" type="image/png" href="favicon-128x128.png" sizes="128x128" />
<link rel="icon" type="image/png" href="./favicon-196x196.png" sizes="196x196" />
<link rel="icon" type="image/png" href="./favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
<link rel="icon" type="image/png" href="./favicon-128x128.png" sizes="128x128" />
<!-- <link rel="shortcut icon" type="image/x-icon" href="favicon.ico"> -->
<% for(var i=0; i < htmlWebpackPlugin.files.css; i++) { %>
<link href="<%= htmlWebpackPlugin.files.css[i] %>" rel="stylesheet">
Expand Down

0 comments on commit 8fc7867

Please sign in to comment.