Skip to content

Commit

Permalink
Added react-planner version printing
Browse files Browse the repository at this point in the history
  • Loading branch information
danilosalvati committed Oct 28, 2016
1 parent b6575f3 commit a60fa42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions demo/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ module.exports = {
filename: "demo.build.js"
},
plugins: [
new OpenBrowserPlugin({url: 'http://localhost:8080'})
new OpenBrowserPlugin({url: 'http://localhost:8080'}),
new webpack.DefinePlugin({
VERSION: JSON.stringify(require("../package.json").version)
})
],
devServer: {
contentBase: path.resolve(path.join(__dirname, 'build'))
Expand Down Expand Up @@ -41,7 +44,6 @@ module.exports = {
'image-webpack?bypassOnDebug&optimizationLevel=7&interlaced=false'
]
}
],
plugins: [new OpenBrowserPlugin({url: 'http://localhost:8080'})]
},
]
}
};
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Catalog from './catalog/catalog';
import ToolbarButton from './components/toolbar/toolbar-button';
import Ruler from './components/viewer2d/ruler';

console.info("react-planner started"); //MIT LICENSE COMPLIANT
console.info(`react-planner v${VERSION} started`); //MIT LICENSE COMPLIANT


export {
Expand Down

0 comments on commit a60fa42

Please sign in to comment.