diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..286b5e2 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,32 @@ +// required jenkins plugins: +// * https://plugins.jenkins.io/git/ + +pipeline { + agent any + + stages { + + // stage('Check for changes') { + // sh "env.GIT_COMMIT != env.GIT_PREVIOUS_COMMIT" + // } + + stage('Install dependencies') { + steps { + sh 'npm ci' + } + } + + stage('Build') { + steps { + sh 'npm run build-all' + } + } + + stage('Push to release server') { + steps { + sh "echo 'implement me pls!'" + } + } + } + +} diff --git a/webpack.config.js b/webpack.config.js index 8a04cd1..a8a7f49 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -50,16 +50,45 @@ const config = { }, { test: /\.css$/, - use: [MiniCssExtractPlugin.loader, 'css-loader'], + use: [ + MiniCssExtractPlugin.loader, { + loader: 'css-loader', + // options: { + // importLoaders: 2, + // modules: { + // localIdentName: "🔶uw_[local]" + // } + // } + }], }, { test: /\.scss$/, - use: [MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader'], - }, - { - test: /\.sass$/, - use: [MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader?indentedSyntax'], + use: [ + MiniCssExtractPlugin.loader, + // 'css-loader', + { + loader: 'css-loader', + // options: { + // // importLoaders: 1, + // modules: { + // localIdentName: "🔶uw_[local]" + // } + // } + }, + 'sass-loader' + ], }, + // { + // test: /\.sass$/, + // use: [MiniCssExtractPlugin.loader, { + // loader: 'css-loader', + // options: { + // importLoaders: 2, + // modules: true, + // localIdentName: "🔶uw_[local]" + // } + // }, 'sass-loader?indentedSyntax'], + // }, { test: /\.(png|jpg|gif|svg|ico)$/, loader: 'file-loader',