<script type="text/javascript">
<%=compilation.assets[htmlWebpackPlugin.files.chunks.main.entry.substr(htmlWebpackPlugin.files.publicPath.length)].source() %>
</script>
这句有报错,很郁闷
<%=compilation.assets[htmlWebpackPlugin.files.chunks.main.entry.substr(htmlWebpackPlugin.files.publicPath.length)].source() %>
</script>
这句有报错,很郁闷
2017-03-14
https://github.com/luopeihai/webpack-demo2.git 为整套源码,其中有在本机运行但是报错的 用其他解决方案,还有sass 运行效果,README.md步骤都写清楚,如果你还 跑不通我就金盆洗手
2017-03-13
{
test: /\.(png|jpg|gif|svg)$/i,
loaders:[
'url-loader?limit=1000&name=assets/[name]-[hash:5].[ext]',
'image-webpack-loader' //压缩
]
}
test: /\.(png|jpg|gif|svg)$/i,
loaders:[
'url-loader?limit=1000&name=assets/[name]-[hash:5].[ext]',
'image-webpack-loader' //压缩
]
}
2017-03-12
{
test: /\.less$/,
loader:'style-loader!css-loader!postcss-loader!less-loader'
}
test: /\.less$/,
loader:'style-loader!css-loader!postcss-loader!less-loader'
}
2017-03-12