widget-crm-form
Advanced tools
Comparing version 5.2.1 to 6.0.1
{ | ||
"name": "widget-crm-form", | ||
"version": "5.2.1", | ||
"version": "6.0.1", | ||
"description": "epicentrk", | ||
"scripts": { | ||
"serve": "webpack serve --env serve --mode development --open", | ||
"dev": "webpack --env dev --mode development --watch", | ||
"build": "rm -rf dist && npm run lintfix && webpack --env prod --mode production", | ||
"p": "npm version patch && npm run build && npm run style:php && npm publish", | ||
"serve": "npm run t && webpack serve --env serve --mode development --open", | ||
"dev": "npm run t && webpack --env dev --mode development --watch", | ||
"build": "rm -rf dist && npm run t && npm run lintfix && webpack --env prod --mode production && npm run style:php", | ||
"p": "npm version patch && npm run build && npm publish", | ||
"lint:js": "eslint --ext \".js,.ts,.vue\" --ignore-path .eslintignore .", | ||
@@ -14,2 +14,3 @@ "lint:style": "stylelint \"**/*.{scss,vue}\" --ignore-path .stylelintignore", | ||
"lintfix": "npm run lint:js -- --fix && npm run lint:style -- --fix", | ||
"t": "node ./timestamp.js", | ||
"style:php": "node ./script.js" | ||
@@ -16,0 +17,0 @@ }, |
const path = require('path'); | ||
const fs = require('fs-extra'); | ||
const files = fs.readdirSync(path.resolve(__dirname, 'dist')); | ||
const t = require('./dist/timestamp'); | ||
const files = fs.readdirSync(path.resolve(__dirname, `dist/${t}`)); | ||
const pathCss = []; | ||
@@ -12,5 +13,5 @@ let file = ''; | ||
pathCss.forEach(el => { | ||
file += `<link rel="stylesheet" href="/resources/widget/crm-from/${el}.css">`; | ||
file += `<link rel="stylesheet" href="/resources/widget/crm-from/${t}/${el}.css">`; | ||
}); | ||
fs.writeFile(path.resolve(__dirname, 'dist/style.php'), file); |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1616849
29
1711
2
1