Skip to content

Commit

Permalink
fix: include missing assets in bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasthiebaud committed Sep 26, 2019
1 parent 1db14c7 commit 2086841
Show file tree
Hide file tree
Showing 13 changed files with 7,436 additions and 6,155 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v8.11.3
v10.16.3
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
language: node_js
# Keep empty to use version from .nvmrc
node_js:
node_js: null

cache:
directories:
- node_modules

install:
- npm install
- npm ci

script:
- npm run lint
Expand Down
8 changes: 1 addition & 7 deletions config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@ const path = require('path');

module.exports = {
collectCoverage: true,
moduleFileExtensions: ['ts', 'tsx', 'js'],
transform: {
"^.+\\.tsx?$": "ts-jest"
},
testMatch: [
'**/?(*.)+(spec|test).(ts|js)'
],
preset: 'ts-jest',
rootDir: path.resolve(__dirname, '..'),
moduleNameMapper: {
'\\.(css|less|sass|scss)$': '<rootDir>/tests/styleMock.js',
Expand Down
3 changes: 0 additions & 3 deletions config/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ module.exports = {
}]
},
plugins: [
new webpack.DefinePlugin({
'process.env.PRODUCTION': false,
}),
new HtmlWebpackPlugin({
template: 'examples/index.html',
})
Expand Down
17 changes: 6 additions & 11 deletions config/webpack.prod.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const path = require('path');
const webpack = require('webpack');

const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');

module.exports = {
devtool: 'cheap-source-map',
devtool: 'source-map',
mode: 'production',
entry: {
skift: './lib/index.js'
Expand Down Expand Up @@ -35,13 +35,8 @@ module.exports = {
loader: 'file-loader',
}]
},
plugins: [
new UglifyJsPlugin({
parallel: true,
cache: true,
}),
new webpack.DefinePlugin({
'process.env.PRODUCTION': true,
}),
],
optimization: {
minimize: true,
minimizer: [new TerserPlugin()],
},
};
Loading

0 comments on commit 2086841

Please sign in to comment.