Questions tagged as 'webpack'

1
answer

webpack + javascript

Situation: When trying to make a new of a javascript function, it gives an error if the file was compiled with webpack. Use case where it works (does not pass through webpack) SiteController.js file: var SiteController=function() { };...
asked by 24.04.2018 / 18:39
0
answers

sass loader webpack folder and output file

I need to know some basic concepts in the output of the webpack loaders My project has this structure for assets +resources +frontend +js +sass and for my output files or the public folder +public +frontend...
asked by 20.04.2018 / 23:01
1
answer

webpack build javascript folder

I'm starting with webpack: My goal is to be able to take an entire folder where I have all my javascript and generate it in a minifiedcado build.js, what I can not find, is how to make the entry of my webpack.conf a folder and not a file, and...
asked by 20.04.2018 / 17:05
1
answer

Webpack ignores the webpack.config.js file

I'm following this tutorial to learn about Webpack ... The issue is that I configured the file as follows: module.exports = { entry: "./app/entry", mode: "development", module: { rules: [ { tes...
asked by 01.04.2018 / 20:56
0
answers

Webpack, ReactJS and Babel

I am new in Webpack and my doubt is that when I install the DevDependencies such as the webpack itself generates the folder Node_Modules in this folder there are more development dependencies, so I want to use React and I al...
asked by 23.03.2018 / 18:25
0
answers

Someone knows how to make webpack-dev-server resolve the parameters in the URL

This is the configuration in webpack.config.js output: { filename: 'bundle.min.js', sourceMapFilename: '[file].map', path: path.resolve(__dirname , 'dist/assets'), publicPath: '/assets/' }, devServer: { contentBase: './dist',...
asked by 19.03.2018 / 19:35
0
answers

How can I achieve this with CommonChunPlugin from WebPack?

What happens is that I just saw a package made with webpack, which returns a function called webpackJsop that causes the javascript code to load asynchronously by chunks. This is the plugin link CommonChunkPlugin This is the code ret...
asked by 13.02.2018 / 05:43
0
answers

Refactor Javascript

I have to refactor a web app legacy. They use modules in this way: myApp = (function(){})(); I understand that in this way the module is used as a space name, since even to use another module they do this: myApp = (function(){ otroModulo....
asked by 01.12.2017 / 13:33
2
answers

Webpack.config.js configuration

Hello, I have the following webpack.config.js file, which I would like to run in production mode from my console. const webpack = require('webpack') const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); const path =...
asked by 14.06.2017 / 16:41
2
answers

Uncaught (in promise) ReferenceError: dom is not defined, babel

import React from "react"; import ReactDOM from "react-dom"; export class V_admin extends React.Component { constructor() { super(); } render() { return ( <option> Hola mundo! <...
asked by 31.05.2017 / 22:56