Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: stoplightio/webpack
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.5.0
Choose a base ref
...
head repository: stoplightio/webpack
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.6.0
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Dec 8, 2019

  1. Copy the full SHA
    a505b89 View commit details
Showing with 389 additions and 370 deletions.
  1. +9 −9 package.json
  2. +3 −0 src/html.ts
  3. +377 −361 yarn.lock
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -39,19 +39,19 @@
"push.yalc": "yarn build && cd dist && yalc push"
},
"dependencies": {
"@babel/core": "^7.7.2",
"@babel/core": "^7.7.5",
"@types/history": "^4.7.3",
"babel-loader": "^8.0.6",
"cache-loader": "^4.1.0",
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^5.0.5",
"cross-env": "^6.0.3",
"css-loader": "^3.2.0",
"css-loader": "^3.2.1",
"file-loader": "^4.2.0",
"fork-ts-checker-webpack-plugin": "^3.1.0",
"fork-ts-checker-webpack-plugin": "^3.1.1",
"html-webpack-plugin": "^3.2.0",
"monaco-editor-webpack-plugin": "^1.7.0",
"style-loader": "^1.0.0",
"style-loader": "^1.0.1",
"stylus": "^0.54.7",
"stylus-loader": "^3.0.2",
"ts-loader": "^6.2.1",
@@ -68,14 +68,14 @@
},
"devDependencies": {
"@stoplight/scripts": "^5.0.0",
"@types/jest": "^24.0.22",
"@types/node": "^12.12.7",
"@types/jest": "^24.0.23",
"@types/node": "^12.12.14",
"browserfs": "*",
"jest": "^24.9.0",
"monaco-editor": "*",
"ts-jest": "^24.1.0",
"tslint-config-stoplight": "^1.3.0",
"typescript": "^3.7.2"
"ts-jest": "^24.2.0",
"tslint-config-stoplight": "^1.4.0",
"typescript": "^3.7.3"
},
"lint-staged": {
"*.ts": [
3 changes: 3 additions & 0 deletions src/html.ts
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@ import * as Config from 'webpack-chain';
const HtmlWebpackPlugin = require('html-webpack-plugin');

export interface IHtmlOpts {
filename?: string;
templatePath?: string;
env?: object;
title?: string;
@@ -13,6 +14,7 @@ export interface IHtmlOpts {

export const configureHtml = (config: Config, opts: IHtmlOpts) => {
const {
filename,
templatePath = path.resolve(__dirname, 'index.html'),
env = {},
title = '',
@@ -23,6 +25,7 @@ export const configureHtml = (config: Config, opts: IHtmlOpts) => {

config.plugin('html').use(HtmlWebpackPlugin, [
{
filename: filename || 'index.html',
template: templatePath,
env: JSON.stringify(env),
title,
Loading