Hi all
I am adding a login.css file to style the wordpress login screen, but it’s also creating an extra login.js file and I can’t see why, my code is below:
In config.json:
{
"entry": {
"main": [
"./scripts/main.js",
"./styles/main.scss"
],
"customizer": [
"./scripts/customizer.js"
],
"login": [
"./styles/login.scss"
]
},
"publicPath": "/app/themes/test",
"devUrl": "http://test.local",
"proxyUrl": "http://localhost:3000",
"cacheBusting": "[name]_[hash:8]",
"watch": [
"app/**/*.php",
"config/**/*.php",
"resources/views/**/*.php"
]
}
When I run yarn run build it also creates dist/scripts/login.js
Am I doing something wrong?
Thanks