@edsc/echoforms 1.1.14 → 1.1.15

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.
@@ -0,0 +1,17 @@
1
+ const webpackConfig = require('./cypress.webpack.config')
2
+
3
+ module.exports = {
4
+ component: {
5
+ setupNodeEvents(on, config) {
6
+ // eslint-disable-next-line global-require
7
+ require('@cypress/code-coverage/task')(on, config)
8
+
9
+ return config
10
+ },
11
+ devServer: {
12
+ framework: 'react',
13
+ bundler: 'webpack',
14
+ webpackConfig
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,48 @@
1
+ const path = require('path')
2
+ const webpack = require('webpack')
3
+ const HtmlWebpackPlugin = require('html-webpack-plugin')
4
+
5
+ module.exports = {
6
+ mode: 'development',
7
+ entry: [path.join(__dirname, 'src', 'index.js')],
8
+ output: {
9
+ path: path.resolve(__dirname, 'dist')
10
+ },
11
+ devtool: false,
12
+ module: {
13
+ rules: [
14
+ {
15
+ test: /\.(js|jsx)$/,
16
+ use: 'babel-loader',
17
+ exclude: /node_modules/
18
+ },
19
+ {
20
+ test: /\.(css|scss)$/,
21
+ use: [
22
+ 'style-loader',
23
+ 'css-loader',
24
+ 'sass-loader',
25
+ {
26
+ loader: 'sass-resources-loader',
27
+ options: {
28
+ // eslint-disable-next-line import/no-dynamic-require, global-require
29
+ resources: require(path.join(process.cwd(), '/src/css/globalUtils.js'))
30
+ }
31
+ }
32
+ ]
33
+ },
34
+ {
35
+ test: /\.xml$/,
36
+ use: ['raw-loader']
37
+ }
38
+ ]
39
+ },
40
+ plugins: [
41
+ new HtmlWebpackPlugin({
42
+ template: path.join(__dirname, 'public', 'index.html')
43
+ }),
44
+ new webpack.ProvidePlugin({
45
+ React: 'react'
46
+ })
47
+ ]
48
+ }