problem description
webpackJS
the environmental background of the problems and what methods you have tried
study.xxx.js js commonjs
;:"webpackJsonp" is not defined
:index.htmlwebpackjsonpxxx.xxx.js;VUE html
webpackjsonP;commonjs webpackjsonpcommonjs
import "./libs/common"
import s from "./libs/study.37510244c0489513ba21"
export default {
name: "App",
mounted () {
s.sleep()
}
}
commonjs
http://eslint.org/docs/rules/key-spacing
src/libs/common.js:1:379
Missing space before value for key "i"
this blog https://www.cnblogs.com/bilib.
I looked at it and thought that what I typed should be a plug-in or something, and I should use a reference like a plug-in.
in the entry file main.js
require("./libs/common")
the result is the same common format error
what result do you expect? What is the error message actually seen?
what exactly is the file packaged by 1:webpack? Plug-in? Library?
question 2: can the packaged file of webpack be used as a sdk?
question 3: how to use the correct way to use it?
question 4: should I use webpack.library?
question 5: can packaged packages be used in html?
cannot be used in vue