Skip to content

Commit

Permalink
Making sure styleguide renders in deck (#4922)
Browse files Browse the repository at this point in the history
  • Loading branch information
archana-s authored and anotherchrisberry committed Feb 28, 2018
1 parent 4310381 commit 2c9a101
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ angular.module(STYLEGUIDE_STATES, [STATE_CONFIG_PROVIDER])
name: 'styleguide',
views: {
'main@': {
templateUrl: require('@spinnaker/styleguide/public/styleguide.html')
templateUrl: '/styleguide.html'
}
},
data: {
Expand Down
7 changes: 7 additions & 0 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const md5 = require('md5');

const HtmlWebpackPlugin = require('html-webpack-plugin');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');

// invalidate webpack cache when webpack config is changed or cache-loader is updated,
const CACHE_INVALIDATE = JSON.stringify({
Expand Down Expand Up @@ -161,6 +162,12 @@ function configure(IS_TEST) {

config.plugins = [
new ForkTsCheckerWebpackPlugin({ checkSyntacticErrors: true, tslint: true }),
new CopyWebpackPlugin([
{
from: `${NODE_MODULE_PATH}/@spinnaker/styleguide/public/styleguide.html`,
to: `./styleguide.html`,
}
]),
];

if (!IS_TEST) {
Expand Down

0 comments on commit 2c9a101

Please sign in to comment.