Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

tec: Upgrade to Webpack 4 #360

Merged
merged 2 commits into from
May 5, 2019
Merged

Conversation

marienfressinaud
Copy link
Collaborator

@marienfressinaud marienfressinaud commented May 5, 2019

Changes proposed in this pull request:

I spent a bit more time to update to Webpack 4. I hope it's finished
now...

References:

Pull request checklist:

* Additional information in the documentation.

@@ -7,7 +7,7 @@ const merge = require('webpack-merge')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'require' is not defined no-undef

@@ -3,6 +3,7 @@ const path = require('path')
const utils = require('./utils')
const config = require('../config')
const vueLoaderConfig = require('./vue-loader.conf')
const { VueLoaderPlugin } = require('vue-loader')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'require' is not defined no-undef

sourceMap: options.sourceMap
sourceMap: options.sourceMap,
plugins: (loader) => [
require('autoprefixer')({

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'require' is not defined no-undef

@@ -25,13 +25,32 @@ exports.cssLoaders = function (options) {
const postcssLoader = {
loader: 'postcss-loader',
options: {
sourceMap: options.sourceMap
sourceMap: options.sourceMap,
plugins: (loader) => [

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'loader' is defined but never used no-unused-vars

@@ -1,7 +1,7 @@
'use strict'
const path = require('path')
const config = require('../config')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'require' is not defined no-undef

I spent a bit more time to update to Webpack 4. I hope it's finished
now...

References:

- vuejs-templates/webpack#1280
- vuejs-templates/webpack#1369
@marienfressinaud marienfressinaud force-pushed the tec/upgrade-to-webpack-4 branch from 0fe6f3a to 673ee5a Compare May 5, 2019 20:32
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: 2.weeks.ago },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'planned', started_at: DateTime.now, planned_at: 1.day.ago },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'planned', started_at: DateTime.now, planned_at: 2.days.ago },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'planned', started_at: 1.week.ago, planned_at: 1.day.ago, planned_count: 3 },

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [167/110]

{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: 1.week.ago },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: 2.weeks.ago },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'planned', started_at: DateTime.now, planned_at: 1.day.ago },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'planned', started_at: DateTime.now, planned_at: 2.days.ago },

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [152/110]
Style/DateTime: Prefer Date or Time over DateTime.
Rails/TimeZone: Do not use DateTime.now without zone. Use one of Time.zone.now, DateTime.current, DateTime.now.in_time_zone, DateTime.now.utc, DateTime.now.getlocal, DateTime.now.iso8601, DateTime.now.jisx0301, DateTime.now.rfc3339, DateTime.now.to_i, DateTime.now.to_f instead.

{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: DateTime.now },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: 1.week.ago },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: 2.weeks.ago },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'planned', started_at: DateTime.now, planned_at: 1.day.ago },

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [151/110]
Style/DateTime: Prefer Date or Time over DateTime.
Rails/TimeZone: Do not use DateTime.now without zone. Use one of Time.zone.now, DateTime.current, DateTime.now.in_time_zone, DateTime.now.utc, DateTime.now.getlocal, DateTime.now.iso8601, DateTime.now.jisx0301, DateTime.now.rfc3339, DateTime.now.to_i, DateTime.now.to_f instead.

{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: DateTime.now },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: DateTime.now },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: 1.week.ago },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: 2.weeks.ago },

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [127/110]

{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: DateTime.now },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: DateTime.now },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: DateTime.now },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: 1.week.ago },

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [126/110]

{ label: Faker::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'planned', started_at: 1.week.ago, planned_at: 1.day.ago, planned_count: 3 },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: DateTime.now },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: DateTime.now },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: DateTime.now },

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [128/110]
Style/DateTime: Prefer Date or Time over DateTime.
Rails/TimeZone: Do not use DateTime.now without zone. Use one of Time.zone.now, DateTime.current, DateTime.now.in_time_zone, DateTime.now.utc, DateTime.now.getlocal, DateTime.now.iso8601, DateTime.now.jisx0301, DateTime.now.rfc3339, DateTime.now.to_i, DateTime.now.to_f instead.

{ label: Faker::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'planned', started_at: DateTime.now, planned_at: 2.days.ago },
{ label: Faker::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'planned', started_at: 1.week.ago, planned_at: 1.day.ago, planned_count: 3 },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: DateTime.now },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: DateTime.now },

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [128/110]
Style/DateTime: Prefer Date or Time over DateTime.
Rails/TimeZone: Do not use DateTime.now without zone. Use one of Time.zone.now, DateTime.current, DateTime.now.in_time_zone, DateTime.now.utc, DateTime.now.getlocal, DateTime.now.iso8601, DateTime.now.jisx0301, DateTime.now.rfc3339, DateTime.now.to_i, DateTime.now.to_f instead.

{ label: Faker::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'planned', started_at: DateTime.now, planned_at: 1.day.ago },
{ label: Faker::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'planned', started_at: DateTime.now, planned_at: 2.days.ago },
{ label: Faker::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'planned', started_at: 1.week.ago, planned_at: 1.day.ago, planned_count: 3 },
{ label: Faker::TvShows::TwinPeaks.quote, user: user, order: order_sequence.pop, state: 'started', started_at: DateTime.now },

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/IndentArray: Use 2 spaces for indentation in an array, relative to the first position after the preceding left parenthesis.
Metrics/LineLength: Line is too long. [128/110]
Style/DateTime: Prefer Date or Time over DateTime.
Rails/TimeZone: Do not use DateTime.now without zone. Use one of Time.zone.now, DateTime.current, DateTime.now.in_time_zone, DateTime.now.utc, DateTime.now.getlocal, DateTime.now.iso8601, DateTime.now.jisx0301, DateTime.now.rfc3339, DateTime.now.to_i, DateTime.now.to_f instead.

sourceMap: options.sourceMap
sourceMap: options.sourceMap,
plugins: () => [
require('autoprefixer')({

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'require' is not defined no-undef

@@ -1,7 +1,7 @@
'use strict'
const path = require('path')
const config = require('../config')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'require' is not defined no-undef

@marienfressinaud marienfressinaud merged commit 673ee5a into master May 5, 2019
@marienfressinaud marienfressinaud deleted the tec/upgrade-to-webpack-4 branch May 5, 2019 20:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants