create-symlink-webpack-plugin
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -36,3 +36,5 @@ 'use strict'; | ||
var outputPath = compiler.options.output.path; | ||
var originPath = path.join(outputPath, option.origin); | ||
// allow origin to have webpack '[hash]' placeholder | ||
var originFileName = option.origin.replace('[hash]', compilation.hash); | ||
var originPath = path.join(outputPath, originFileName); | ||
var reportProgress = context && context.reportProgress; | ||
@@ -39,0 +41,0 @@ |
{ | ||
"name": "create-symlink-webpack-plugin", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "webpack 4 plugin to generate symlinks", | ||
@@ -22,3 +22,9 @@ "main": "dist/index.js", | ||
"author": "nystudio107", | ||
"contributors": [ | ||
{ | ||
"name": "Luiza Pagliari", | ||
"email": "lpagliari@gmail.com" | ||
} | ||
], | ||
"license": "MIT" | ||
} |
@@ -13,3 +13,3 @@ ## How it works | ||
{ | ||
origin: 'index.html', | ||
origin: 'index-[hash].html', | ||
symlink: '200.html', | ||
@@ -32,3 +32,3 @@ }, | ||
{ | ||
origin: 'index.html', | ||
origin: 'index-[hash].html', | ||
symlink: '200.html', | ||
@@ -35,0 +35,0 @@ }, |
@@ -24,3 +24,5 @@ const fs = require('fs'); | ||
const outputPath = compiler.options.output.path; | ||
const originPath = path.join(outputPath, option.origin); | ||
// allow origin to have webpack '[hash]' placeholder | ||
const originFileName = option.origin.replace('[hash]', compilation.hash); | ||
const originPath = path.join(outputPath, originFileName); | ||
const reportProgress = context && context.reportProgress; | ||
@@ -27,0 +29,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76585
111