recentpopularlog in

kme : webpack   15

How to minify js file without webpackJsonp wrapper? · Issue #2281 · webpack/webpack · GitHub
I noticed this JSONP "wrapper" getting created when I used webpack-file-loader on a bunch of images. I thought this might give me some hints as to how to disable that, but nope. I just left it be and ignored it.
webdevel  javascript  webpack  jsonp  reference 
september 2017 by kme
webpack-simple/webpack.config.js at master · vuejs-templates/webpack-simple · GitHub
devServer: {
historyApiFallback: true,
noInfo: true
performance: {
hints: false
devtool: '#eval-source-map'
vuejs  javascript  webdevel  uglify  webpack  configfile  reference 
september 2017 by kme
Wildcards in entry points · Issue #370 · webpack/webpack · GitHub
You can easily do this by your own, as the webpack.config.js is just a node.js module and allows to execute any code.

var glob = require("glob");
// ...
entry: glob.sync("./test/**/*Spec.js")
webpack  configfile  bundling  webdevel  solution 
september 2017 by kme
This works, but be advised that its output is supposed to be the value part of the 'entries' key (itself a set of key-value pairs).

The recommendation from (use glob.sync()) works fine for what I needed it for.
webdevel  webpack  npm  maybesolution 
september 2017 by kme
Learn Vue 2: Step By Step: Webpack Config From Scratch
Watch Jeffrey blunder his way through a Webpack config for bundling Vue components and vendor dependencies. It would've taken me a month to figure all this out.
webpack  webdevel  video  solution 
august 2017 by kme

Copy this bookmark:

to read