aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-07-09 15:12:02 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-07-09 15:12:02 +0800
commit619a42053f6c4f64b50badc321beda6e60119cba (patch)
treec22c1904b2b9f6436107b596389a304a750c92cd /src
parent687edf43279507dfc25ec99f18e99ad43bf9388f (diff)
chore(build): yarn & webpack 4 & path & assets.json
Diffstat (limited to 'src')
-rw-r--r--src/.babelrc10
-rw-r--r--src/package.json31
-rw-r--r--src/postcss.config.js7
-rw-r--r--src/webpack.config.js54
4 files changed, 0 insertions, 102 deletions
diff --git a/src/.babelrc b/src/.babelrc
deleted file mode 100644
index 2645a84..0000000
--- a/src/.babelrc
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "presets": ["es2015","stage-2"],
- "plugins": [
- ["transform-runtime", {
- "polyfill": false,
- "regenerator": true
- }]
- ],
- "ignore": []
-}
diff --git a/src/package.json b/src/package.json
deleted file mode 100644
index 2f436b7..0000000
--- a/src/package.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "name": "even-src",
- "version": "1.0.0",
- "description": "even source file",
- "main": "index.js",
- "scripts": {
- "start": "webpack",
- "build": "webpack"
- },
- "author": "ahonn, olOwOlo",
- "license": "MIT",
- "devDependencies": {
- "autoprefixer": "^7.2.4",
- "babel-core": "^6.26.0",
- "babel-loader": "^7.1.2",
- "babel-plugin-transform-runtime": "^6.23.0",
- "babel-preset-es2015": "^6.24.1",
- "babel-preset-stage-2": "^6.24.1",
- "css-loader": "^0.28.8",
- "expose-loader": "^0.7.4",
- "extract-text-webpack-plugin": "^3.0.2",
- "file-loader": "^1.1.6",
- "node-sass": "^4.7.2",
- "postcss-loader": "^2.0.10",
- "sass-loader": "^6.0.6",
- "style-loader": "^0.19.1",
- "uglifyjs-webpack-plugin": "^1.1.6",
- "url-loader": "^0.6.2",
- "webpack": "^3.10.0"
- }
-}
diff --git a/src/postcss.config.js b/src/postcss.config.js
deleted file mode 100644
index 7c5b1be..0000000
--- a/src/postcss.config.js
+++ /dev/null
@@ -1,7 +0,0 @@
-module.exports = {
- plugins: [
- require('autoprefixer')({
- browsers: ['> 1%', 'last 2 versions', 'ie >= 9']
- })
- ]
-} \ No newline at end of file
diff --git a/src/webpack.config.js b/src/webpack.config.js
deleted file mode 100644
index f2218be..0000000
--- a/src/webpack.config.js
+++ /dev/null
@@ -1,54 +0,0 @@
-const path = require('path')
-const ExtractTextPlugin = require('extract-text-webpack-plugin')
-const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
-
-const extractSass = new ExtractTextPlugin({
- filename: `even.min.css`
-})
-
-module.exports = {
- devtool: 'source-map',
- entry: {
- even: './js/main.js'
- },
- output: {
- path: path.join(__dirname, '../static/dist'),
- filename: `[name].min.js`
- },
- module: {
- rules: [
- {
- test: /\.js$/,
- exclude: /node_modules/,
- loader: 'babel-loader'
- },
- {
- test: /\.scss$/,
- use: extractSass.extract({
- use: [{
- loader: 'css-loader', options: {minimize: true, sourceMap: true}
- }, {
- loader: 'postcss-loader', options: {sourceMap: true}
- }, {
- loader: 'sass-loader', options: {sourceMap: true}
- }],
- fallback: 'style-loader'
- })
- },
- {
- test: /iconfont\.(woff|woff2|eot|ttf|otf|svg)$/,
- use: ['file-loader?name=[path][name].[ext]?hash=[hash:7]']
- },
- {
- test: /apple-chancery-webfont\.(woff|woff2|eot|ttf|otf|svg)$/,
- use: ['file-loader?name=[path][name].[ext]']
- }
- ]
- },
- plugins: [
- extractSass,
- new UglifyJSPlugin({
- sourceMap: true
- })
- ]
-}