@cley_faye/boilerplate 3.2.0 → 3.2.1

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.
package/README.md CHANGED
@@ -31,7 +31,7 @@ For webapp building:
31
31
  - grunt-contrib-copy
32
32
  - grunt-contrib-watch
33
33
  - grunt-sass
34
- - node-sass
34
+ - sass
35
35
  - grunt-webpack
36
36
  - grunt
37
37
 
@@ -154,6 +154,7 @@ The webpack options support a host of properties:
154
154
  - babelPlugins: array of plugins for Babel
155
155
  - mode: The build mode. "development", "production" or "none"
156
156
  - defines: a record of value to define using Babel transform-define
157
+ - resolve: a custom "resolve" object for webpack config
157
158
 
158
159
  ### SASS
159
160
  All `.sass` and `.scss` files in the webapp directory will be processed as `.css` files in the
@@ -45,6 +45,7 @@ export interface WebpackOptions extends BaseOptions {
45
45
  plugins?: Array<Record<string, unknown>>;
46
46
  babelPlugins?: Array<Record<string, unknown>>;
47
47
  defines?: Record<string, string>;
48
+ resolve?: unknown;
48
49
  }
49
50
  /** Add a webpack task for the reactApp recipe
50
51
  *
@@ -221,6 +221,7 @@ const handle = (gruntConfig, targetName, webpackOptions) => {
221
221
  eslintPlugin(),
222
222
  ...webpackOptions.plugins ?? [],
223
223
  ],
224
+ resolve: webpackOptions.resolve,
224
225
  };
225
226
  // Special case: I'm not sure I can move options in the task-specific part of
226
227
  // the configuration, so I add it at the toplevel of the "webpack" task.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cley_faye/boilerplate",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Boilerplate code generator for generic projects",
5
5
  "repository": {
6
6
  "type": "git",