diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..0172c86 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,27 @@ +# Set the default behavior, in case people don't have core.autocrlf set. +* text=auto + +# Explicitly specify line endings for as many files as possible. +# People who (for example) rsync between Windows and Linux need this. + +# File types which we know are binary +*.wav binary + +# Prefer LF for most file types +*.js text eol=lf +*.js.map text eol=lf +*.json text eol=lf +*.md text eol=lf +*.yml text eol=lf +*.txt text eol=lf + +# Prefer LF for these files +.editorconfig text eol=lf +.eslintignore text eol=lf +.eslintrc text eol=lf +.gitattributes text eol=lf +.gitignore text eol=lf +.npmignore text eol=lf +LICENSE text eol=lf + +# Use CRLF for Windows-specific file types diff --git a/.gitignore b/.gitignore index 132627c..5bdbc78 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ npm-* /coverage /dist.js +/dist.js.map diff --git a/webpack.config.js b/webpack.config.js index 40ffb73..1494ecd 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,7 @@ var path = require('path'); module.exports = { + devtool: 'cheap-module-source-map', entry: { dist: './src/index.js' },