Initial support for Webpack
This commit is contained in:
parent
d12af4bd47
commit
c0b6e13fa4
|
@ -2,3 +2,4 @@ _output
|
||||||
_site
|
_site
|
||||||
.jekyll-metadata
|
.jekyll-metadata
|
||||||
/node_modules
|
/node_modules
|
||||||
|
/assets/webpack
|
||||||
|
|
|
@ -16,6 +16,11 @@ exclude:
|
||||||
- Gemfile.lock
|
- Gemfile.lock
|
||||||
- CNAME
|
- CNAME
|
||||||
- vendor
|
- vendor
|
||||||
|
- package.json
|
||||||
|
- .babelrc
|
||||||
|
- yarn.lock
|
||||||
|
- package-lock.json
|
||||||
|
- webpack.config.js
|
||||||
|
|
||||||
# Markdown
|
# Markdown
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
alert('hello')
|
|
@ -0,0 +1,23 @@
|
||||||
|
const join = require('path').resolve
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
context: join(__dirname, '..'),
|
||||||
|
entry: {
|
||||||
|
app: './_js/app.js'
|
||||||
|
},
|
||||||
|
output: {
|
||||||
|
path: join(__dirname, '..', 'assets', 'webpack'),
|
||||||
|
filename: '[name].js'
|
||||||
|
},
|
||||||
|
module: {
|
||||||
|
rules: [
|
||||||
|
{ test: /\.js$/,
|
||||||
|
exclude: /node_modules/,
|
||||||
|
use: [
|
||||||
|
{ loader: 'babel-loader' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
stats: 'minimal'
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
"name": "cheatsheets",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"main": "index.js",
|
||||||
|
"repository": "https://github.com/rstacruz/cheatsheets.git",
|
||||||
|
"author": "Rico Sta. Cruz <rstacruz@users.noreply.github.com>",
|
||||||
|
"license": "MIT",
|
||||||
|
"devDependencies": {
|
||||||
|
"babel-core": "6.26.0",
|
||||||
|
"babel-loader": "7.1.2",
|
||||||
|
"babel-preset-env": "1.6.0",
|
||||||
|
"webpack": "3.6.0"
|
||||||
|
},
|
||||||
|
"babel": {
|
||||||
|
"presets": [
|
||||||
|
"env"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"dev": "webpack --watch --progress --colors"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
module.exports = require('./_support/webpack.config.js')
|
Loading…
Reference in New Issue