Skip to content

Commit

Permalink
complete simple compile
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Aug 7, 2019
0 parents commit 55fd6d1
Show file tree
Hide file tree
Showing 13 changed files with 6,319 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.DS_Store
node_modules
/dist

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
Empty file added build/webpack.base.js
Empty file.
28 changes: 28 additions & 0 deletions build/webpack.dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const path = require('path');
const webpack = require('webpack');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
entry: {
app: './src/index.js'
},
output: {
path: path.resolve(process.cwd(), 'dist'),
filename: 'index.js'
},
devtool: 'inline-source-map',
devServer: {
contentBase: './dist',
port: 9999,
// hot: true
},
plugins: [
new CleanWebpackPlugin({}),
new HtmlWebpackPlugin({
title: 'aue',
}),
// new webpack.NamedModulesPlugin(),
// new webpack.HotModuleReplacementPlugin(),
]
}
20 changes: 20 additions & 0 deletions build/webpack.prod.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');

module.exports = {
entry: {
app: './src/index.js'
},
output: {
path: path.resolve(process.cwd(), 'dist'),
filename: '[name].bundle.js'
},
devtool: 'source-map',
plugins: [
new CleanWebpackPlugin({}),
new HtmlWebpackPlugin({
title: 'aue',
})
]
}
Loading

0 comments on commit 55fd6d1

Please sign in to comment.