From 5a4a079b909e66e517d2d028bf1576f021d444a4 Mon Sep 17 00:00:00 2001 From: jingsam Date: Fri, 28 Oct 2016 18:50:34 +0800 Subject: [PATCH] delete init script --- build/webpack.config.js | 6 ------ package.json | 4 +--- test/index.html | 3 +++ 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/build/webpack.config.js b/build/webpack.config.js index 2c2f424c..1e13e060 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -5,7 +5,6 @@ var path = require('path'); var webpack = require('webpack'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); -var HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { // 入口 @@ -63,10 +62,5 @@ module.exports = { plugins: [ new ExtractTextPlugin("[name].css",{ allChunks : true,resolve : ['modules'] }), // 提取CSS new webpack.optimize.CommonsChunkPlugin('vendors', 'vendors.js'), // 提取第三方库 - new HtmlWebpackPlugin({ // 构建html文件 - filename: 'index.html', - template: './test/index.html', - inject: 'body' - }) ] }; diff --git a/package.json b/package.json index 9db72ca0..c228ac19 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,7 @@ ], "main": "src/index.js", "scripts": { - "init": "webpack --progress --config build/webpack.config.js", - "dev": "webpack-dev-server --content-base test/dist/ --open --inline --hot --compress --history-api-fallback --port 8081 --config build/webpack.config.js", + "dev": "webpack-dev-server --content-base test/ --open --inline --hot --compress --history-api-fallback --port 8081 --config build/webpack.config.js", "build": "gulp --gulpfile build/build-style.js" }, "repository": { @@ -52,7 +51,6 @@ "gulp-minify-css": "^1.2.4", "gulp-rename": "^1.2.2", "html-loader": "^0.3.0", - "html-webpack-plugin": "^2.22.0", "less": "^2.7.1", "less-loader": "^2.2.3", "style-loader": "^0.13.1", diff --git a/test/index.html b/test/index.html index 90bec8e0..f56e8a55 100644 --- a/test/index.html +++ b/test/index.html @@ -3,8 +3,11 @@ iView test page +
+ +