Skip to content

Commit 29fc119

Browse files
VITE_INBOX: update npm run dev
VITE_INBOX: update npm run dev VITE_INBOX: update npm run dev VITE_INBOX: update npm run dev
1 parent 3765618 commit 29fc119

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"private": true,
99
"scripts": {
1010
"postinstall": "mkdir -p public/css/precompiled && cp -rf node_modules/npm-font-open-sans public/css/precompiled/npm-font-open-sans && cp -rf node_modules/bootstrap/scss public/css/precompiled/bootstrap && cp -rf node_modules/@fortawesome/fontawesome-free public/css/precompiled/fontawesome-free && cp -rf node_modules/@fontsource/poppins public/css/precompiled/poppins && cp -rf node_modules/@processmaker/vue-multiselect/dist/vue-multiselect.min.css public/css/precompiled",
11-
"dev": "npm run development",
11+
"dev": "npm run development && npm run vite:build",
1212
"development": "mix",
1313
"watch": "mix watch",
1414
"watch-poll": "mix watch -- --watch-options-poll=1000",

vite.config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { pathToFileURL } from 'url';
66
import yaml from '@rollup/plugin-yaml';
77

88
const stylesPath = path.resolve(__dirname, 'resources/sass');
9+
const nm = (...segments) => path.resolve(__dirname, 'node_modules', ...segments);
910

1011
/**
1112
* Resolve Webpack-style `~styles/...` imports used in Vue SFC <style lang="scss">.
@@ -83,7 +84,15 @@ export default defineConfig(({ mode }) => {
8384
resolve: {
8485
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
8586
alias: {
86-
vue: path.resolve(__dirname, 'node_modules/vue/dist/vue.esm.js'),
87+
vue: nm('vue/dist/vue.esm.js'),
88+
// Bare peers imported by CI-linked screen-builder ESM
89+
// (/opt/packages/screen-builder/dist/vue-form-builder.es.js)
90+
'@processmaker/vue-form-elements': nm('@processmaker/vue-form-elements'),
91+
lodash: nm('lodash'),
92+
vuex: nm('vuex'),
93+
moment: nm('moment'),
94+
'moment-timezone': nm('moment-timezone'),
95+
'vue-monaco': nm('vue-monaco'),
8796
styles: stylesPath,
8897
'~styles': stylesPath,
8998
},

0 commit comments

Comments
 (0)