From ded0922c4af9ac4dfe1efee436c4e75ff8360386 Mon Sep 17 00:00:00 2001 From: Eder Sampaio Date: Sun, 23 Sep 2018 12:53:54 -0300 Subject: [PATCH] [FIX] HtmlWebpackPlugin template --- README.md | 2 +- package.json | 2 +- samples/{full.html => index.html} | 0 webpack/dev.config.js | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) rename samples/{full.html => index.html} (100%) diff --git a/README.md b/README.md index 53b748c..393da35 100644 --- a/README.md +++ b/README.md @@ -170,7 +170,7 @@ formValidate.init() ### Full example -[Click here](https://ederssouza.github.io/vanillajs-form-validator/samples/full.html) to view demo. +[Click here](https://ederssouza.github.io/vanillajs-form-validator/samples) to view demo. ```javascript var form = document.getElementById('form') diff --git a/package.json b/package.json index 409262f..f7a40ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vanillajs-form-validator", - "version": "1.0.6", + "version": "1.0.7", "description": "Form validation in pure JavaScript.", "main": "./src/index.js", "scripts": { diff --git a/samples/full.html b/samples/index.html similarity index 100% rename from samples/full.html rename to samples/index.html diff --git a/webpack/dev.config.js b/webpack/dev.config.js index 825bc6a..aa3d8f8 100644 --- a/webpack/dev.config.js +++ b/webpack/dev.config.js @@ -20,13 +20,13 @@ module.exports = { plugins: common.plugins.concat( new HtmlWebpackPlugin({ filename: 'index.html', - template: './index.html', + template: './samples/index.html', inject: false }) ), devServer: { - contentBase: path.join(__dirname, '../'), + contentBase: path.join(__dirname, '../', 'samples'), compress: true, watchContentBase: true, port: 3000