windicss / vue-cli-plugin-windicss

🍃 Windi CSS for Vue CLI ⚡
MIT License
16 stars 4 forks source link

An incomprehensible bug. #40

Open ajh99990 opened 1 year ago

ajh99990 commented 1 year ago
@vue/cli 5.0.8
node v16.17.0
vue 3.2.47
vue-cli-plugin-windicss 1.1.6
unplugin-auto-import 0.16.4
unplugin-vue-components 0.24.1

Once I include the "vue-cli-plugin-windicss" plugin in my "package.json" file,

devDependencies:{
"vue-cli-plugin-windicss": "^1.1.6",
}

my page will look like this:

image

On the contrary, if I remove this plugin and run the command "vue-cli-service serve" again, the page will look like this, everything will be back to normal.

image

I swear I have never written this strange code anywhere.

var _ = require("!!../node_modules/lodash/lodash.js");module.exports = function (templateParams) { with(templateParams) {return (function(data) { var __t, __p = ''; __p += '\n\n \n \n \n \n \n \n \n \n \n
\n \n\n'; return __p })();}}