@newlogic-digital/core 2.0.0-alpha.10 → 2.0.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +6 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -123,8 +123,6 @@ const plugin = (options = {}) => {
123
123
  fs.existsSync(join(os.homedir(), `.ssh/${options.cert}-key.pem`))
124
124
 
125
125
  let defaultInput = [
126
- './src/views/**/*.{json,latte,twig,liquid,njk,hbs,pug,html}',
127
- '!./src/views/**/*.{latte,twig,liquid,njk,hbs,pug,html}.json',
128
126
  './src/styles/*.{css,pcss,scss,sass,less,styl,stylus}',
129
127
  './src/scripts/*.{js,ts,mjs}'
130
128
  ]
@@ -133,14 +131,16 @@ const plugin = (options = {}) => {
133
131
  options.mode = userEnv.mode
134
132
  }
135
133
 
136
- if (userEnv.mode === 'headless') {
137
- userEnv.mode = 'production'
138
-
134
+ if (options.mode === 'development') {
139
135
  defaultInput = [
136
+ './src/views/**/*.{json,latte,twig,liquid,njk,hbs,pug,html}',
137
+ '!./src/views/**/*.{latte,twig,liquid,njk,hbs,pug,html}.json',
140
138
  './src/styles/*.{css,pcss,scss,sass,less,styl,stylus}',
141
139
  './src/scripts/*.{js,ts,mjs}'
142
140
  ]
143
- } else if (userEnv.mode === 'emails') {
141
+ }
142
+
143
+ if (options.mode === 'emails') {
144
144
  userEnv.mode = 'production'
145
145
 
146
146
  defaultInput = [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@newlogic-digital/core",
3
3
  "type": "module",
4
- "version": "2.0.0-alpha.10",
4
+ "version": "2.0.0-alpha.11",
5
5
  "main": "index.js",
6
6
  "author": "New Logic Studio s.r.o.",
7
7
  "description": "Set of tools that can be used to create modern web applications",