generator-webpack-babel
Advanced tools
Comparing version 0.7.1 to 0.7.2
{ | ||
"name": "my-project-name", | ||
"version": "1.0.0", | ||
"author": "AUTHOR NAME", | ||
"license": "MIT", | ||
"name": "template-webpack-babel", | ||
"description": "2017 Basic Web dev template for newbee, and readers of hugojing/web-lessons.", | ||
"homepage": "https://github.com/hugojing/template-webpack-babel", | ||
"version": "0.7.2", | ||
"author": { | ||
"name": "hugojing", | ||
"email": "toloric@163.com", | ||
"url": "https://changshiban.com" | ||
}, | ||
"scripts": { | ||
"dist": "rm -rf ./dist && mkdir ./dist && webpack --config build.js" | ||
"dev": "webpack-dev-server --inline --config ./build/dev", | ||
"dist": "rm -rf ./dist && mkdir ./dist && webpack --config ./build/prod" | ||
}, | ||
"license": "MIT", | ||
"devDependencies": { | ||
@@ -15,3 +22,2 @@ "autoprefixer": "^6.7.7", | ||
"babel-preset-stage-3": "^6.22.0", | ||
"connect-history-api-fallback": "^1.3.0", | ||
"cross-env": "^3.2.3", | ||
@@ -24,8 +30,10 @@ "css-loader": "^0.27.2", | ||
"style-loader": "^0.13.2", | ||
"uglifyjs-webpack-plugin": "^0.3.1", | ||
"url-loader": "^0.5.8", | ||
"webpack": "^2.2.1", | ||
"webpack-dev-middleware": "^1.10.1", | ||
"webpack-hot-middleware": "^2.17.1" | ||
"webpack-dev-server": "^2.4.2", | ||
"webpack-merge": "^4.1.0" | ||
}, | ||
"dependencies": { | ||
"jquery": "^3.2.1", | ||
"normalize.css": "^5.0.0" | ||
@@ -32,0 +40,0 @@ }, |
@@ -1,1 +0,7 @@ | ||
# MY PROJECT NAME | ||
# template-webpack-babel | ||
2017 Basic Web dev template for newbee, and readers of hugojing/web-lessons. | ||
## Usage | ||
click → https://github.com/hugojing/generator-webpack-babel |
@@ -8,2 +8,11 @@ require('normalize.css') | ||
logo.setAttribute('src', logoSrc) | ||
document.getElementById('app').appendChild(logo) | ||
// document.getElementById('app').appendChild(logo) | ||
function append() { | ||
require.ensure(['jquery'], require => { | ||
const $ = require('jquery') | ||
$('#app').append(logo) | ||
}) | ||
} | ||
setTimeout(append, 0) |
{ | ||
"name": "generator-webpack-babel", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "2017 Basic Web dev template for newbee, and readers of hugojing/web-lessons.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/hugojing/generator-webpack-babel", |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
294417
25
235
2