diff --git a/frontend/webpack.config.js b/frontend/webpack.config.js index 0c07f862..a13153dc 100644 --- a/frontend/webpack.config.js +++ b/frontend/webpack.config.js @@ -2,10 +2,10 @@ var webpack = require('webpack'); var CommonsChunkPlugin = require("webpack/lib/optimize/CommonsChunkPlugin"); module.exports = { entry: { - 'app': './main.ts' + 'app': __dirname+'./main.ts' }, output: { - filename: './dist/[name]-bundle.js', + filename: __dirname+'./dist/[name]-bundle.js', library: ['peer'] }, // Turn on sourcemaps diff --git a/package.json b/package.json index 494c21e8..26fb3c97 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "homepage": "https://github.com/bpatrik/PiGallery2", "license": "MIT", "scripts": { - "build": "webpack -p && tsc -p backend", + "build": "tsd reinstall && webpack frontend/webpack.config.js -P && tsc -p backend", + "pretest": "tsd reinstall", "test": "karma start ./karma.conf.js", "start": "node ./backend/server" }, @@ -50,7 +51,6 @@ "karma-sourcemap-loader": "^0.3.7", "karma-webpack": "1.7.0", "ng2lint": "0.0.10", - "parse5": "^1.3.2", "phantomjs-polyfill": "0.0.2", "phantomjs-prebuilt": "^2.1.4", "protractor": "^3.1.1",