exclude:path.resolve(__dirname,'/node_modules/'),
include:path.resolve(__dirname,'/src'),
371ms
include:path.resolve(__dirname,'/src'),
371ms
2017-08-29
ERROR in Entry module not found: Error: Can't resolve 'babel' in 'F:\ComponentDemo'
BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using loaders.
-->
loaders:[
{
test:/\.js$/,
loader:'babel-loader',
}
BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using loaders.
-->
loaders:[
{
test:/\.js$/,
loader:'babel-loader',
}
2017-08-29
如果document.getElementById("app")取不到值的话,那么可以app.js在外层加上window.onload=function(){},等dom树加载完后在取值
2017-08-29
exclude: __dirname +'./node_module/',
include: __dirname +'./src/',
Time: 312ms
include: __dirname +'./src/',
Time: 312ms
2017-08-29
ERROR in ./src/components/layer/layer.html
Module parse failed: E:\webpack\app\src\components\layer\layer.html Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
<div class="layer">
<div class="">
this is a layer
./src/components/layer/layer.js 1:0-30
./src/app.js
Module parse failed: E:\webpack\app\src\components\layer\layer.html Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
<div class="layer">
<div class="">
this is a layer
./src/components/layer/layer.js 1:0-30
./src/app.js
2017-08-28
@Lynnic,注意引入import Layer from './components/layer/layer.js'中Layer首字母大写,区分下边的layer
2017-08-28