@newlogic-digital/core 2.0.0-alpha.10 → 2.0.0-alpha.11
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +6 -6
- 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 (
|
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
|
-
}
|
141
|
+
}
|
142
|
+
|
143
|
+
if (options.mode === 'emails') {
|
144
144
|
userEnv.mode = 'production'
|
145
145
|
|
146
146
|
defaultInput = [
|
package/package.json
CHANGED