Sunday, May 21, 2017

How can i prevent Webpack from adding unneeded content?

I'm currently trying out Laravel 5.4, using npm run dev for my js files and i keep getting this

(function(modules) { // webpackBootstrap
/******/    // The module cache
/******/    var installedModules = {};
/******/
/******/    // The require function
/******/    function __webpack_require__(moduleId) {
...

on the top and bottom of my js files, i don't know much about Laravel or Webpack, however i don't need those lines anyway since i'm going to be using simple Javascript there

anyone got any idea how to disable that?

thanks.



via Emad

Advertisement