Authored by 姜枫

还原js修改

@@ -219,7 +219,7 @@ gulp.task('webpack-dev-server', () => { @@ -219,7 +219,7 @@ gulp.task('webpack-dev-server', () => {
219 devConfig.plugins[0] = new ExtractTextPlugin('bundle/[name].css'); 219 devConfig.plugins[0] = new ExtractTextPlugin('bundle/[name].css');
220 devConfig.plugins.push(new webpack.HotModuleReplacementPlugin()); 220 devConfig.plugins.push(new webpack.HotModuleReplacementPlugin());
221 221
222 - // devConfig.entry.libs.unshift(`webpack-dev-server/client?${devConfig.output.publicPath}`, 'webpack/hot/dev-server'); 222 + devConfig.entry.libs.unshift(`webpack-dev-server/client?${devConfig.output.publicPath}`, 'webpack/hot/dev-server');
223 223
224 new WebpackDevServer(webpack(devConfig), { 224 new WebpackDevServer(webpack(devConfig), {
225 contentBase: '.', 225 contentBase: '.',
1 -$(function(){  
2 - require('../../scss/product/detail/_index.css'); 1 +require('../../scss/product/detail/_index.css');
3 var $ = require('yoho-jquery'); 2 var $ = require('yoho-jquery');
4 var productId = $('#productId').val(); 3 var productId = $('#productId').val();
5 var goodsId = $('#goodsId').val(); 4 var goodsId = $('#goodsId').val();
@@ -278,5 +277,3 @@ setTimeout(() => { @@ -278,5 +277,3 @@ setTimeout(() => {
278 }); 277 });
279 }, 200); 278 }, 200);
280 }(productSkn, productId, brandId)); 279 }(productSkn, productId, brandId));
281 -  
282 -})();