postcss-px-to-viewport is used for adaptation in vue. Configure as follows postcss: { plugins: [ autoprefixer(), pxtovw({ viewportWidth: 750, viewp...
for example, I want to dynamically load Google Analytics based on the environment in index.html. The development environment does not introduce its script, and the production environment introduces its script. I tried to read the process.env attribute...
webpack multiple pages how do I compile or package a page based on parameters? A folder is a single page, ...
by default, webpack uses how the Commonjs specification wants to change to AMD or how the CMD specification changes ...
webpack4 sets mode mode to none prompt does not set mode to development use DLL to package vue in the vue project to avoid re-build the third-party library every time it is packaged, and an error will be reported when executing the script. Webpack pro...
I have such a package with the following structure index.js import apiList from . interface const install = Vue => { if (install.installed) return; install.installed = true Object.defineProperties(Vue.prototype, { ...
ask for help, the website cannot run after vuecli is packaged. my directory in the development is also very simple, the source code is under src, all other static resources are placed in static, and static is full of pictures and json static files ....
I used the project created by vue-cli 2.x, and then in the .vue file <style> @import @ assets icon iconfont.css ; < style> will report an error: Module build failed: Error: Failed to find ~ @ assets icon iconfont.css even if I ...
tool.js export const a = () =>() export const b = () =>() tool.js export default { a:()=>() b: c: ... } what s the difference between these two when webpack compiles? When loading on demand which do you use when writing u...
ask everyone to take a look, where should I start to eliminate mistakes? ...
does anyone know how to load vue, but every file inside is the file is not displayed in the editor because it is either binary or uses an unsupported text encoding. What s going on? ...
in css files, you can directly use url-loader to solve use picture tags in html you can use html-loader or html-withimg-loader to solve but what is the solution to introduce pictures using element background in html? < div style= "backgroun...
has MD5 value, and the packaged hash value is also different each time js changes the code, but the user must refresh the page cache to use normally....
vue is packaged and put to the server to access the very slow page. It can t be opened at all. It s very simple to load the project there. It s easy to install vue scaffolding. The new project is packaged directly after installation dependency . lat...
how do vue-cli3 multi-page applications output js,css to the corresponding subdirectory under dist ...
react-js project, now introduces typescript, installs typescript @ types react @ types node , and configures tsconfig.json { "compilerOptions": { "experimentalDecorators": true, "allowJs": true, "ta...
I have a problem now. I want to customize the antd theme, but I package it to extract the tripartite library and inject it into cdn, so that the theme I customize in webpack is invalid webpackConfig.externals = { react: React , react-dom ...
build a project with vue scaffolding. After visiting the home page successfully in 8080, you want to continue to introduce the element-ui file, and the page reports an error (the error message is the following figure). I don t know which side has gone ...
do lazy loading with vue-lazyload, install npm install vue-lazyload-- save-dev first according to the tutorial. I have a problem here, that is, after installation, vue-lazyload appears in devDependencies rather than in dependencies. devDependencies i...
background: A login function that distinguishes the online environment from the test environment. The online environment logs in with the mobile verification code, and the test environment logs in with the account password. my first reaction to seeing ...