Skip to content

Commit

Permalink
Merge pull request #2 from bijoyanupam/v1.3.2-dev
Browse files Browse the repository at this point in the history
Update grunt configuration with latest packages
  • Loading branch information
bijoyanupam committed Mar 2, 2023
2 parents 159d4ce + 70eb2c1 commit 1a9d854
Show file tree
Hide file tree
Showing 9 changed files with 11,268 additions and 9,068 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"comments": false,
"minified": true,
"sourceMaps": true,
"presets": ["env"],
"presets": ["@babel/preset-env"],
"ignore": []
}
6 changes: 3 additions & 3 deletions assets/js/lib/math.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// lib/math.js
export function sum(x, y) {
export const sum = (x, y) => {
return x + y;
}
export var pi = 3.141593;
};
export const pi = 3.141593;
5 changes: 1 addition & 4 deletions assets/js/module2.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// module2.js
import {
sum,
pi
} from './lib/math';
import { sum, pi } from './lib/math';
// eslint-disable-next-line no-console
console.log('2π = ' + sum(pi, pi));
2 changes: 1 addition & 1 deletion grunt/postcss.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ module.exports = function (grunt) {
return {
'options': {
'processors': [
require('autoprefixer'),
require('postcss-import'),
require('autoprefixer'),
require('cssnano')
]
},
Expand Down
1 change: 1 addition & 0 deletions grunt/sass.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = function (grunt) {
return {
'options': {
'implementation': require('node-sass'),
'sourceMap': true,
'outputStyle': 'compressed'
},
Expand Down
Loading

0 comments on commit 1a9d854

Please sign in to comment.