Skip to content

Commit

Permalink
Merge branch 'release/2.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
benurb committed Jul 28, 2017
2 parents bc0c294 + f5c9ac6 commit 3f10dbb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"file-loader": "^0.9.0",
"stats-replace-webpack-plugin": "*",
"webpack": "^1.13.1",
"webpack-dev-server": "^1.14.1"
"webpack": "^2.2.0",
"webpack-dev-server": "^2.2.0"
}
}
5 changes: 3 additions & 2 deletions example/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const path = require("path");
const StatsReplacePlugin = require("stats-replace-webpack-plugin");

module.exports = {
Expand All @@ -7,14 +8,14 @@ module.exports = {
},

output: {
path: "./dist",
path: path.join(__dirname, "dist"),
filename: "js/[name]-[chunkhash].js"
},

module: {
loaders: [
{
loader: "file?name=[name].[ext]",
loader: "file-loader?name=[name].[ext]",
test: /index\.html$/
}
]
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

const path = require("path");
const RawSource = require("webpack/lib/RawSource");
const RawSource = require("webpack-sources/lib/RawSource");


class StatsReplacePlugin {
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
"name": "stats-replace-webpack-plugin",
"version": "1.2.1",
"version": "2.0.0",
"description": "Fills placeholders in text files with the final name of compiled assets",
"main": "lib/index.js",
"directories": {
"example": "example",
"lib": "lib"
},
"devDependencies": {
"eslint": "^3.0.0"
},
"peerDependencies": {
"webpack": "^1.13.1"
"webpack-sources": ">= 0.1.1"
},
"scripts": {
"lint": "eslint .",
Expand All @@ -30,8 +33,5 @@
"bugs": {
"url": "https://github.com/sueddeutsche/stats-replace-webpack-plugin/issues"
},
"homepage": "https://github.com/sueddeutsche/stats-replace-webpack-plugin#readme",
"devDependencies": {
"eslint": "^3.0.0"
}
"homepage": "https://github.com/sueddeutsche/stats-replace-webpack-plugin#readme"
}

0 comments on commit 3f10dbb

Please sign in to comment.