-
我根据老师讲解的内容用webpack2.0写了一遍,源码在https://github.com/manlili/webpack_learn,喜欢给点颗星星,谢谢!查看全部
-
我根据老师讲解的内容用webpack2.0写了一遍,源码在https://github.com/manlili/webpack_learn,喜欢给点颗星星,谢谢!查看全部
-
我根据老师讲解的内容用webpack2.0写了一遍,源码在https://github.com/manlili/webpack_learn,喜欢给点颗星星,谢谢!查看全部
-
我根据老师讲解的内容用webpack2.0写了一遍,源码在https://github.com/manlili/webpack_learn,喜欢给点颗星星,谢谢!查看全部
-
我根据老师讲解的内容用webpack2.0写了一遍,源码在https://github.com/manlili/webpack_learn,喜欢给点颗星星,谢谢!查看全部
-
我根据老师讲解的内容用webpack2.0写了一遍,源码在https://github.com/manlili/webpack_learn,喜欢给点颗星星,谢谢!查看全部
-
[name] 表示chunk的name,也就是entry作为对象的key值 [hash] 打包生成的hash值 [chunkhash] chunk的hash值查看全部
-
打包js,webpack 要打包的文件名 打包完的文件名 打包css 要用loader 在require('css-loader!css路径及文件名') 要页面中使用css样式携程require('style-loader!css-loader!css路径及文件名')查看全部
-
webpack 2.4配置postcss-loader module:{ rules:[ { test:/\.js$/, loader:'babel-loader', exclude:path.resolve(__dirname+"/node_modules/"), include:path.resolve(__dirname+"/src/"), query:{ presets:'latest' } }, { test:/\.css$/, use:[ 'style-loader', {loader:'css-loader',options:{importLoaders:1}}, { loader:'postcss-loader', options:{ plugins:function(){ return [ require("autoprefixer")({browsers:['last 5 versions']}) ] } } } ] } ] }查看全部
-
一个html模板生成多个页面,并对应引入需要的js文件查看全部
-
werewrewr查看全部
-
关于报错:ERROR in Template execution failed: TypeError: Cannot read property 'entry' of undefined ERROR in TypeError: Cannot read property 'entry' of undefined 的问题解决: 模板文件index.html中不需要的要删除,注释的话,dos命令会报错,我之前都是注释。。。现在把注释的删除重新运行就可以啦查看全部
-
最简单的webpack配置 包含入口文件,导出目录及文件查看全部
-
入口文件:entry查看全部
-
这里要看webpack的版本来决定,版本不同api的名字会不一样:"webpack": "webpack --config webpack.config.js --progress --display-modules --colors --display-reasons"查看全部
举报
0/150
提交
取消