mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +00:00
[ci:force][MIGRATION] - Fixed webpack config for testing lib
This commit is contained in:
@@ -9,3 +9,4 @@ scripts
|
|||||||
/angular.json
|
/angular.json
|
||||||
docs/**/*.md
|
docs/**/*.md
|
||||||
lib/js-api/docs/**/*.md
|
lib/js-api/docs/**/*.md
|
||||||
|
lib/testing/webpack.config.js
|
||||||
|
@@ -11,8 +11,8 @@
|
|||||||
"projectRoot": "lib/testing",
|
"projectRoot": "lib/testing",
|
||||||
"outputPath": "dist/libs/testing",
|
"outputPath": "dist/libs/testing",
|
||||||
"main": "lib/testing/index.ts",
|
"main": "lib/testing/index.ts",
|
||||||
"generatePackageJson": true,
|
|
||||||
"tsConfig": "lib/testing/tsconfig.lib.prod.json",
|
"tsConfig": "lib/testing/tsconfig.lib.prod.json",
|
||||||
|
"webpackConfig": "lib/testing/webpack.config.js",
|
||||||
"stylePreprocessorOptions": {
|
"stylePreprocessorOptions": {
|
||||||
"includePaths": ["lib", "lib/core/src/lib"]
|
"includePaths": ["lib", "lib/core/src/lib"]
|
||||||
},
|
},
|
||||||
@@ -24,7 +24,6 @@
|
|||||||
"projectRoot": "lib/testing",
|
"projectRoot": "lib/testing",
|
||||||
"outputPath": "dist/libs/testing",
|
"outputPath": "dist/libs/testing",
|
||||||
"main": "lib/testing/index.ts",
|
"main": "lib/testing/index.ts",
|
||||||
"generatePackageJson": true,
|
|
||||||
"tsConfig": "lib/testing/tsconfig.lib.prod.json"
|
"tsConfig": "lib/testing/tsconfig.lib.prod.json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
20
lib/testing/webpack.config.js
Normal file
20
lib/testing/webpack.config.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
const { NxAppWebpackPlugin } = require('@nx/webpack/app-plugin');
|
||||||
|
const { join } = require('path');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
output: {
|
||||||
|
path: join(__dirname, '../../dist/libs/testing')
|
||||||
|
},
|
||||||
|
devServer: {
|
||||||
|
port: 4200
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
new NxAppWebpackPlugin({
|
||||||
|
main: './src/index.ts',
|
||||||
|
tsConfig: './tsconfig.lib.json',
|
||||||
|
index: './src/index.ts',
|
||||||
|
outputHashing: process.env['NODE_ENV'] === 'production' ? 'all' : 'none',
|
||||||
|
optimization: process.env['NODE_ENV'] === 'production'
|
||||||
|
})
|
||||||
|
]
|
||||||
|
};
|
Reference in New Issue
Block a user