Im stressed trying to make Uglify working with my project, previously I have used Uglify and was not giving problems but now I think that is SASS related.  ERROR in ./~/css-loader!./~/sass-loader!./app/scss/global-header.scss     Module build failed:...
I am in the process of working through a tutorial on Webpack, but after adding in HtmlWebpackPlugin and trying to run Webpack again, I get the following error:  Error: Cannot find module 'html-webpack-plugin'     at Function.Module._...
I have a very specific requirement where I need to split the JS script tag into one file and the CSS link tag into another file using HtmlWebpackPlugin.  At the moment, both script and link tags are going into both files. Is there a way to do them se...
I am using webpack html plugin to generate the html page from the graphiql.ejs but it is not generating html page when I am running npm start  webpack.config.js  var HtmlWebpackPlugin = require("html-webpack-plugin"); module.exports = {   plu...
I am using Webpack + html-webpack-plugin to build all my static files. The thing is, when I am using it with Google Maps API, it's not working.  I have this code:  var map; function initMap() {   map = new google.maps.Map(document.getElementById(...
I 've got a problem with my webpack configuration. After implementing html-webpack-plugin I got an Error, there's whole error stack from generated index.html.  Error Stack: Html Webpack Plugin:  Error: Child compilation failed:   Conflict: Mu...
I use Webpack along with the plugin html-webpack-plugin. Based on an environment variable, I want to inject a <meta></meta> tag into the final index.html file.  How do I do this?...
I'm using HtmlWebpackPlugin to generate HTML files with javascript.  Now I would like to add custom script at different parts of <head> and <body> tags  Example:  How do I,   Add <script> alert('in head tag') </script...
I am fairly new to WebPack, and I want to be able to take a directory of CSS files (.app/styles/[css files...]) and output them into one CSS file (dist/styles.css).  Currently, all the JavaScript files is compiled into one single "index_bundle.js...
I have a static site where I am using Vue and Webpack.  I have some global CSS rules in a file called style.css and I am importing them by using import './styles.css' from my index.js file. Additionally, I have some .vue files which generate...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.