Skip to content

Commit

Permalink
create dev webpack config for non-minified version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Jones committed Aug 2, 2018
1 parent fb76df5 commit 2fba576
Show file tree
Hide file tree
Showing 9 changed files with 3,192 additions and 1,171 deletions.
397 changes: 395 additions & 2 deletions dist/wiprint-admin.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/wiprint-admin.js.map

This file was deleted.

1,600 changes: 1,598 additions & 2 deletions dist/wiprint.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/wiprint.js.map

This file was deleted.

2,339 changes: 1,178 additions & 1,161 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"scripts": {
"build": "npm run lint && npm run clean && npm run webpack",
"build:dev": "npm run lint && npm run clean && npm run webpack && npm run package:dev",
"build:dev": "npm run lint && npm run clean && npm run webpack:dev && npm run package:dev",
"webpack": "webpack --progress --colors --config webpack.config.js --output-path ./dist -p",
"webpack:dev": "webpack --progress --colors --config webpack.dev.js --output-path ./dist -p",
"postbuild": "npm run package",
"package": "tfx extension create --rev-version",
"package:dev": "tfx extension create --overrides-file vss-extension.dev.json --rev-version",
Expand All @@ -20,7 +21,8 @@
"tslint-loader": "^3.6.0",
"typescript": "^2.8.3",
"webpack": "^4.16.3",
"webpack-cli": "^3.1.0"
"webpack-cli": "^3.1.0",
"webpack-merge": "^4.1.4"
},
"dependencies": {
"@types/jquery": "^2.0.34",
Expand Down
2 changes: 1 addition & 1 deletion vss-extension.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifestVersion": 1,
"id": "wiprint",
"version": "2.2.40",
"version": "2.2.45",
"name": "Work Item Print",
"scopes": ["vso.work", "vso.extension.data_write"],
"description": "Print work items from query toolbar or context menu.",
Expand Down
1 change: 0 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ var path = require("path");
var webpack = require("webpack");

module.exports = {
mode: "none",
target: "web",
entry: {
wiprint: "./src/wiprint.ts",
Expand Down
16 changes: 16 additions & 0 deletions webpack.dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
var path = require("path");
var webpack = require("webpack");

const merge = require('webpack-merge');
const common = require('./webpack.config.js');

module.exports = merge(common, {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
contentBase: './dist'
},
optimization: {
minimize: false
}
});

0 comments on commit 2fba576

Please sign in to comment.