For every entry in my common.entry object I get the following printed to console (with 3 entries in my webpack.config.js). Is this desired output?
webpack.config.js
const path = require('path');
const HtmlWebpackPlugin =…
I have a folder with my modules and my webpack.config in my project.
My webpack.config:
entry: {
hmr: [
'webpack-dev-server/client?http://localhost:8080',
'webpack/hot/only-dev-server'
// 'webpack/hot/dev-server'
…
I am a newbie to webpack and currently trying to understand basic concepts.
Looking at the official docs, on the page Concepts it uses module term and gives link to read more about modules on page Modules.
So on this page we have question "What is a…
WEBPACK @ 2.2
WEBPACK-MERGE @ 2.4
I am using webpack merge to do a smart dev or production config.
My start script looks like
}
"scripts": {
"start": "webpack --env=production & node start.js",
"dev": "webpack-dev-server --env=dev",
},
and my…
I am currently using css module with miniCssExtractPlugin, it is wired it is not working,it do extract css into a separate css file, but the css file is empty.when i use style-loader it looks good with css module, but it will not extract css to a…
I'm getting started with Webpack
I installed webpack@4.17.1
I got it generating assembled js & css files, and moving img files
When I run webpack I get
pub/bld/
├── css
│ └── common.css
├── img
│ └── image.jpg
└── js
└── common.js
Now I…
I have been trying many different configurations but I now feel like I have been staring at this problem for too long and can't figure it out anymore. I am trying to use webpack file-loader for simple images, while a normal configuration works like…
I'm trying to implement long-term caching of my js project. I've been using the survivejs (http://survivejs.com/webpack_react/developing_with_webpack/) page as a tutorial.
What I've found is that both .css and .js use the same…
i am getting this issue webpack.validateSchema is not a function when i setting up webpack and react below i shared my webpack.config.js
const path = require('path');
const merge = require('webpack-merge');
const webpack = require('webpack');
const…
I've just gotten started with Webpack, so I've got just enough knowledge to be dangerous and I'm sure I've made quite a mess of my config file. But it's quite closely modeled after the surviveJS example, which is running on my machine without…
I start learning webpack and reading survive.js book (http://survivejs.com/webpack_react/getting_started/) for this. But I can't understand one moment.
When I try build first example – I have one chunk more that in book.
Books build log:
```>…
I'm trying to update a project to Webpack 5. mini-css-extract-plugin causes an error. When I use style-loader instead of mini-css-extract-plugin's loader, my project builds just fine. However, you shouldn't inline your CSS for production…
Hey guys I'm using webpack-cdn-plugin to load assets from CDN, but I'm having issues with loading CSS assets. This is how my code looks:
{
plugins: [
new HtmlWebpackPlugin({
template: './src/index.html',
favicon:…
Are there chunk size / loading time implications in choosing between:
Splitting a client side application into multiple bundles and serving them across different html pages (i.e. server side routing /about => about.html => about.bundle.js, etc)…