Skip to content

Commit 8fbbf69

Browse files
committed
Update dependencies
1 parent 2f2c88b commit 8fbbf69

File tree

16 files changed

+38
-20
lines changed

16 files changed

+38
-20
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Change History
22
==============
33

4+
v2.22.0
5+
---
6+
* Update dependencies
7+
48
v2.21.1
59
---
610
* Better error handling (#354)

examples/appcache/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
var path = require('path');
12
var AppCachePlugin = require('appcache-webpack-plugin');
23
var HtmlWebpackPlugin = require('../..');
34
var ExtractTextPlugin = require('extract-text-webpack-plugin');
@@ -6,7 +7,7 @@ var webpackMajorVersion = require('webpack/package.json').version.split('.')[0];
67
module.exports = {
78
entry: './example.js',
89
output: {
9-
path: __dirname + '/dist/webpack-' + webpackMajorVersion,
10+
path: path.join(__dirname, 'dist/webpack-' + webpackMajorVersion),
1011
publicPath: '',
1112
filename: 'bundle.js'
1213
},

examples/build-examples.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var webpackMajorVersion = require('webpack/package.json').version.split('.')[0];
99
var fs = require('fs');
1010
var path = require('path');
1111
var execSync = require('child_process').execSync;
12-
var rm_rf = require('rimraf');
12+
var rimraf = require('rimraf');
1313
var webpackBin = path.resolve(__dirname, '..', 'node_modules', '.bin', 'webpack');
1414

1515
var examples = fs.readdirSync(__dirname).filter(function (file) {
@@ -19,6 +19,6 @@ var examples = fs.readdirSync(__dirname).filter(function (file) {
1919
examples.forEach(function (exampleName) {
2020
var examplePath = path.join(__dirname, exampleName);
2121
var configFile = path.join(examplePath, 'webpack.config.js');
22-
rm_rf.sync(path.join(examplePath, 'dist', 'webpack-' + webpackMajorVersion));
22+
rimraf.sync(path.join(examplePath, 'dist', 'webpack-' + webpackMajorVersion));
2323
execSync(webpackBin + ' --context "' + examplePath + '" --config "' + configFile + '"');
2424
});

examples/custom-template/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
var path = require('path');
12
var HtmlWebpackPlugin = require('../..');
23
var ExtractTextPlugin = require('extract-text-webpack-plugin');
34
var webpackMajorVersion = require('webpack/package.json').version.split('.')[0];
45

56
module.exports = {
67
entry: './example.js',
78
output: {
8-
path: __dirname + '/dist/webpack-' + webpackMajorVersion,
9+
path: path.join(__dirname, 'dist/webpack-' + webpackMajorVersion),
910
publicPath: '',
1011
filename: 'bundle.js'
1112
},

examples/default/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
var path = require('path');
12
var HtmlWebpackPlugin = require('../..');
23
var webpackMajorVersion = require('webpack/package.json').version.split('.')[0];
34
module.exports = {
45
entry: './example.js',
56
output: {
6-
path: __dirname + '/dist/webpack-' + webpackMajorVersion,
7+
path: path.join(__dirname, 'dist/webpack-' + webpackMajorVersion),
78
publicPath: '',
89
filename: 'bundle.js'
910
},

examples/favicon/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
var path = require('path');
12
var HtmlWebpackPlugin = require('../..');
23
var ExtractTextPlugin = require('extract-text-webpack-plugin');
34
var webpackMajorVersion = require('webpack/package.json').version.split('.')[0];
45
module.exports = {
56
entry: './example.js',
67
output: {
7-
path: __dirname + '/dist/webpack-' + webpackMajorVersion,
8+
path: path.join(__dirname, 'dist/webpack-' + webpackMajorVersion),
89
publicPath: '',
910
filename: 'bundle.js'
1011
},

examples/html-loader/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
var path = require('path');
12
var HtmlWebpackPlugin = require('../..');
23
var ExtractTextPlugin = require('extract-text-webpack-plugin');
34
var webpackMajorVersion = require('webpack/package.json').version.split('.')[0];
45
module.exports = {
56
entry: './example.js',
67
output: {
7-
path: __dirname + '/dist/webpack-' + webpackMajorVersion,
8+
path: path.join(__dirname, 'dist/webpack-' + webpackMajorVersion),
89
publicPath: '',
910
filename: 'bundle.js'
1011
},

examples/inline/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
var path = require('path');
12
var HtmlWebpackPlugin = require('../..');
23
var ExtractTextPlugin = require('extract-text-webpack-plugin');
34
var webpackMajorVersion = require('webpack/package.json').version.split('.')[0];
45

56
module.exports = {
67
entry: './example.js',
78
output: {
8-
path: __dirname + '/dist/webpack-' + webpackMajorVersion,
9+
path: path.join(__dirname, 'dist/webpack-' + webpackMajorVersion),
910
publicPath: '',
1011
filename: 'bundle.js'
1112
},

examples/jade-loader/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
var path = require('path');
12
var HtmlWebpackPlugin = require('../..');
23
var ExtractTextPlugin = require('extract-text-webpack-plugin');
34
var webpackMajorVersion = require('webpack/package.json').version.split('.')[0];
45
module.exports = {
56
entry: './example.js',
67
output: {
7-
path: __dirname + '/dist/webpack-' + webpackMajorVersion,
8+
path: path.join(__dirname, 'dist/webpack-' + webpackMajorVersion),
89
publicPath: '',
910
filename: 'bundle.js'
1011
},

examples/javascript-advanced/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
var path = require('path');
12
var HtmlWebpackPlugin = require('../..');
23
var ExtractTextPlugin = require('extract-text-webpack-plugin');
34
var webpackMajorVersion = require('webpack/package.json').version.split('.')[0];
45
module.exports = {
56
entry: './example.js',
67
output: {
7-
path: __dirname + '/dist/webpack-' + webpackMajorVersion,
8+
path: path.join(__dirname, 'dist/webpack-' + webpackMajorVersion),
89
publicPath: '',
910
filename: 'bundle.js'
1011
},

0 commit comments

Comments
 (0)