My goal is to build js library with some widgets. This library will be used on many different websites, domains etc… It will be imported on page like normal jquery library and it will be hosted on domain e.g. libhome.com like this: <script src="https://libhome.com/static/lib.js"></script> This library is build using webpack. It contains react inside and ..
Category : webpack
every time when I’m changing any files of my project ,it’s automatically update nuxt.config.js.it’s taking longer then usual to Build my app. it’s so frustrating………….. Hot Reload Nuxt-Terminal image Source: Ask Javascript..
I’m trying to add this webpack extension and build my Vue app. From what I’ve read Vue/cli has webpack, and I’ve tried installing different versions of webpack too. For some reason I can’t get Vue app to build. Anyone got a fix or can point out where I’ve gone wrong? I’ve already tried removing/reinstalled node_modules ..
I’m trying to config webpack for a ReactJS app, but I’m stuck with the following error, currently no loaders are configured to process this file. The error: [./src/styles.css] 268 bytes {main} [built] [failed] [1 error] + 325 hidden modules ERROR in ./src/styles.css 1:0 Module parse failed: Unexpected token (1:0) You may need an appropriate loader ..
i have this in my project @import (( "./assets/sass/style.angular.scss"; )) .. how i can change the path based on variable .. i want to make it change when user change the language of the project to arabic use this path = (( @import "./assets/sass/style.angular.RTL.css"; )) ?? Source: Ask Javascript..
I have an ad hoc plugin in my Webpack (ver.5) config where I need to talk to devServer (hot mode) to do a manual page reload. My current solution is (parts from my config): let Self = {}; module.exports = { // … devServer: { before: (app, server) => (Self.devServer = server) // … plugins: ..
Any JavaScript isn’t working in my rails app. I have included <%= javascript_pack_tag ‘application’, ‘data-turbolinks-track’: ‘reload’ %> in application.html.erb, and this consloe.log("something") in application.js file, but my console is empty. Does anyone know why? Source: Ask Javascript..
I don’t understand why all the icons are in the bundle. Even if I only use the button from "antd" import { Button } from ‘antd’; How can this be fixed? webpack-bundle-analyzer.png babel.config.js.png Source: Ask Javascript..
I’m getting the above-mentioned error during the build process by AWS CI/CD. However, when I run the production build script locally on my PC, it succeeds without any errors. I noticed that the error is caused by ‘react-bootstrap’ (v0.32.4) but I have absolutely no idea how to fix it. react-bootstrap components are correctly imported and ..
I am trying to use vuejs-datepicker in a nuxt app, everything is done by nuxt plugin usage standarts. plugins/vue-datepicker.js import Vue from ‘vue’ import Datepicker from ‘vuejs-datepicker’ Vue.component(‘Datepicker’, Datepicker) nuxt.config.js plugins: [ { src: ‘~/plugins/vue-datepicker’, ssr: false } ], But even when it is not used I am getting its dist uploaded in the vendors/app….js ..
Recent Comments