problem description add a processor to the scss sass file in the webpack configuration file and introduce the global sass variable, but use the variable in the vue template to indicate that the variable does not exist the environmental background of...
problem description I need to create a new project now. I have installed the node.js, Taobao image and scaffolding. There is something wrong with the initialization project in the last step. Please take a look at it . the platform version of the prob...
const webpack = require("webpack"); const path = require( path ); const glob = require( glob ); const CleanWebpackPlugin = require( clean-webpack-plugin ); dist const HtmlWebpackPlugin = require( html-webpack-plugin ); html const...
just added a file to the file min.js, did not introduce import, unexpectedly can not run, reported an error. I don t know why memory overflow: JavaScript heap out of memory 60% building modules 423 463 modules 40 active ...ockjs-client lib even...
configuration in package.json { "name": "pack", "version": "1.0.0", "description": "", "main": "app main.js", "scripts": { "test": "e...
I use webpack4 and then the config folder in the project contains dev.config.json and prod.config.json . I want to control which configuration file is introduced through environment variables at the front end. Here s what I m doing right now, as fo...
now you are working on a project with webpack@3.10.0, and you need to install webpack-dev-server. if I install npm I webpack-dev-server directly, I will install the latest version of webpack-dev-server, and remind me to update webpack above version ...
cannot connect to the public network, but there is a npm image. You want to use webstorm s vue template to create a project is to configure webpack?. It s still vue-cli?. or give up using scaffolding to guide packages directly ...
react-notifications library and material-ui library are used when reactjs is developed, both of which depend on react-transition-group library, react-notifications depends on version 1.2.1, and material-ui depends on version 2.2.1. When, npm install is ...
vue-cli 3.0 vue ui Open the graphical interface, but the interface keeps loading reporting errors as follows Unhandled GraphQL subscription error Uncaught (in promise) Error: Network error: Cannot use GraphQLSchema "[object Object]" fro...
plugins: [ new HtmlWebpackPlugin({ inlineSource: .(js|css)$ embed all javascript and css inline }), new HtmlWebpackInlineSourcePlugin() ] HtmlWebpackInlineSourcePlugin plug-in, if there are multiple pages, multiple new HtmlWebpa...
if (!isIE9) { import swiper dist css swiper.min.css } else { import swiper2 dist idangerous.swiper.css } as above will report an error import and export may only appear at the top level because the project needs to support ie9, s...
, .. .. .. such words seem to be a configuration problem, rookies will not change, call for help! Thank you! ...
I want to use pug,stylus to develop Mini Program, and finally use webpack to package to generate a dist directory such as page index index.pug index.styl index.json index.js generate dist page index index.wxml i...
1.webpack parses .vue into a js, so how does vue register this js as a component 2. Whether this component is a global component or a local component 3. If it is a local component, how is it injected ...
error when using iview framework toast components in mpvue Module parse failed: Unexpected token (17:8) You may need an appropriate loader to handle this file type. page introduces const {$Toast} = require ( ".. static iview toast index "); h...
now the root path of the packaged project is but the project is in a folder, so you need to add a layer filename in front of the path of the packaged file to access it. How should I do this? ...
problem: because you want to introduce pictures directly into the html file through the img tag, html-withimg-loader is configured in webpack. But in this way, a similar in the html file cannot be parsed! ...
{ test: .css$ , use: [ { loader: style-loader useable }, { loader: postcss-loader , options:{ ident: postcss , plugins:[ re...
as mentioned, I want to use the babel-core plug-in to implement a simple demo, code that compiles es6 code as follows: src main.js var babel = require("@babel core"); let code = ` let a = 1; let b = 2 let add = (a, b) => { ...
vuex has been unloaded and reinstalled several times, but it still reports an error main.js : store : : at compile time. even if you put the sentence "import Vuex from vuex " under main.js, you will still report an error under main.js. you ...
problem description I found that axios sends an option request before each request, verifying methods that can be cross-domain. This implementation may be more standard, but there is no such additional request when using jquery before. when I think ...
this code is not very understood, ask the great god for help under the popular science. The main reason is that the code in the 2 for loops is a little unintelligible, so if it is convenient to add comments to explain it. var array = [ c , a ...
is weex suitable? ...
import pano from . module pano export const store = new Vuex.Store({ modules: { pano } }) pano.js const state = { pano: null } at this point, when getting state, it is this.$store.state.pano.pano.xxx. How can I remove a layer of pano? ...