Skip to content

Commit

Permalink
chore(webpack): allow tslint in dev + inherit in test and remove --ho…
Browse files Browse the repository at this point in the history
…t webpack-server

- this fixes the issue of broken source maps
  • Loading branch information
Hotell committed May 6, 2016
1 parent 13bd987 commit 8f059d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"test": "karma start",
"test:watch": "npm run test -- --auto-watch --no-single-run",
"clean": "rimraf doc/ coverage/ dist/",
"server": "webpack-dev-server --port $npm_package_config_port --hot --inline --progress --profile --colors --watch --display-error-details --display-cached --content-base src/"
"server": "webpack-dev-server --port $npm_package_config_port --inline --progress --profile --colors --watch --display-error-details --display-cached --content-base src/"
},
"keywords": [],
"contributors": [
Expand Down
11 changes: 0 additions & 11 deletions webpack-test.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ const webpackDevtool = 'inline-source-map';

const webpackPostLoaders = [

/*
* Tslint loader support for *.ts files
*
* See: https://github.com/wbuchwalter/tslint-loader
*/
{
test: /\.ts$/,
loader: 'tslint-loader',
exclude: [ /node_modules/ ]
},

/**
* Instruments JS files with Istanbul for subsequent code coverage reporting.
* Instrument only testing sources.
Expand Down
10 changes: 5 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ const webpackPreLoaders = [
* See: https://github.com/wbuchwalter/tslint-loader
*/
// @TODO codelyzer is breaking somehow source maps, allow this when it will be resolved
// {
// test: /\.ts$/,
// loader: 'tslint-loader',
// exclude: [ /node_modules/ ]
// },
{
test: /\.ts$/,
loader: 'tslint-loader',
exclude: [ /node_modules/ ]
},

/**
* Source map loader support for *.js files
Expand Down

0 comments on commit 8f059d4

Please sign in to comment.